From 382f706a5be188b32c9006a7c98da3c56e4f4321 Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Fri, 14 Jun 2013 01:04:57 +0200 Subject: [PATCH] Fix patrolling where NP patrol isn't explicitly enabled Hot fix! Follow-up fc5bcf1147f9 Change-Id: Iba7e70e1a1ddd9826f6e5f4022b88ccafc5f571d --- includes/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index c8e6ce225e..ba922a46ab 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1054,14 +1054,14 @@ class Article implements Page { * @return bool */ public function showPatrolFooter() { - global $wgUseNPPatrol, $wgEnableAPI, $wgEnableWriteAPI; + global $wgUseNPPatrol, $wgUseRCPatrol, $wgEnableAPI, $wgEnableWriteAPI; $outputPage = $this->getContext()->getOutput(); $user = $this->getContext()->getUser(); $cache = wfGetMainCache(); $rc = false; - if ( !$this->getTitle()->quickUserCan( 'patrol', $user ) || !$wgUseNPPatrol ) { + if ( !$this->getTitle()->quickUserCan( 'patrol', $user ) || !( $wgUseRCPatrol || $wgUseNPPatrol ) ) { // Patrolling is disabled or the user isn't allowed to return false; } -- 2.20.1