There was an error while loading. Please reload this page.
2 parents 43a548a + 4fa0c27 commit accf2a3Copy full SHA for accf2a3
includes/EditPage.php
@@ -422,8 +422,6 @@ class EditPage {
422
* @param Article $article
423
*/
424
public function __construct( Article $article ) {
425
-global $wgOOUIEditPage;
426
-
427
$this->mArticle = $article;
428
$this->page = $article->getPage(); // model object
429
$this->mTitle = $article->getTitle();
@@ -434,7 +432,7 @@ public function __construct( Article $article ) {
434
432
$handler = ContentHandler::getForModelID( $this->contentModel );
435
433
$this->contentFormat = $handler->getDefaultFormat();
436
437
-$this->oouiEnabled = $wgOOUIEditPage;
+$this->oouiEnabled = $this->context->getConfig()->get( 'OOUIEditPage' );
438
}
439
440
/**
0 commit comments