diff options
Diffstat (limited to 'includes/page/Article.php')
-rw-r--r-- | includes/page/Article.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/page/Article.php b/includes/page/Article.php index 3cbeacffa757..7577972b0053 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' ); } |