X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FEditPage.php;h=973327b0be73c74db3f98ae40e4c1cbcc683cbb3;hp=814c248304a0f03bfc7a3730a7c19e8453f96063;hb=4fa0c27cc83b8ed621db41c05cff32106423be02;hpb=10d1b7d12b5d097413cd507740c5c71781c2580b diff --git a/includes/EditPage.php b/includes/EditPage.php index 814c248304..973327b0be 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -422,8 +422,6 @@ class EditPage { * @param Article $article */ public function __construct( Article $article ) { - global $wgOOUIEditPage; - $this->mArticle = $article; $this->page = $article->getPage(); // model object $this->mTitle = $article->getTitle(); @@ -434,7 +432,7 @@ class EditPage { $handler = ContentHandler::getForModelID( $this->contentModel ); $this->contentFormat = $handler->getDefaultFormat(); - $this->oouiEnabled = $wgOOUIEditPage; + $this->oouiEnabled = $this->context->getConfig()->get( 'OOUIEditPage' ); } /**