mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 18:58:42 +00:00
Merge "Replace class_exists with ExtensionRegistry::isLoaded()"
This commit is contained in:
commit
7643be1c98
|
@ -443,7 +443,7 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
|
|||
|
||||
$result['isRedirect'] = (string)$title->isRedirect();
|
||||
|
||||
if ( class_exists( FlaggablePageView::class ) ) {
|
||||
if ( ExtensionRegistry::getInstance()->isLoaded( 'FlaggedRevs' ) ) {
|
||||
$view = FlaggablePageView::singleton();
|
||||
|
||||
$originalContext = $view->getContext();
|
||||
|
|
Loading…
Reference in a new issue