Merge "Replace class_exists with ExtensionRegistry::isLoaded()"

This commit is contained in:
jenkins-bot 2020-04-29 20:13:33 +00:00 committed by Gerrit Code Review
commit 7643be1c98

View file

@ -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();