X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/supprimer.php?a=blobdiff_plain;f=includes%2Fpage%2FArticle.php;h=7577972b0053f1b02d8587c74a30d7e7f012457c;hb=225b462a50b545b1f100e0d51a6070b0766ce12a;hp=3cbeacffa7575a03059e8536175b62e427431a32;hpb=30ba8f52dc8827578ec7901207c9cbd00e44b76a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/Article.php b/includes/page/Article.php index 3cbeacffa7..7577972b00 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -965,7 +965,7 @@ class Article implements Page { * @return bool */ public function showPatrolFooter() { - global $wgUseNPPatrol, $wgUseRCPatrol, $wgUseFilePatrol, $wgEnableAPI, $wgEnableWriteAPI; + global $wgUseNPPatrol, $wgUseRCPatrol, $wgUseFilePatrol; $outputPage = $this->getContext()->getOutput(); $user = $this->getContext()->getUser(); @@ -1100,7 +1100,7 @@ class Article implements Page { } $outputPage->preventClickjacking(); - if ( $wgEnableAPI && $wgEnableWriteAPI && $user->isAllowed( 'writeapi' ) ) { + if ( $user->isAllowed( 'writeapi' ) ) { $outputPage->addModules( 'mediawiki.page.patrol.ajax' ); }