From 5bb01bb1c5bf593fc51a6c4e4b15a526ed18b3c3 Mon Sep 17 00:00:00 2001 From: Greg Maxwell Date: Mon, 29 Oct 2007 20:38:58 +0000 Subject: [PATCH] Resolve bug 1405 (http://bugzilla.wikimedia.org/show_bug.cgi?id=1405). New option $wgUseNPPatrol allows for patrolling of new pages for projects where the overall editing rate is too high to make patrolling useful in the general case. This change is based on the patch by Thue Janus Kristensen. --- includes/Article.php | 44 +++++++++++++++++++++---------- includes/DefaultSettings.php | 3 +++ includes/SpecialNewpages.php | 8 +++--- languages/messages/MessagesEn.php | 2 ++ 4 files changed, 39 insertions(+), 18 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index c0484e7f7b..1533ae9331 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -622,7 +622,7 @@ class Article { */ function view() { global $wgUser, $wgOut, $wgRequest, $wgContLang; - global $wgEnableParserCache, $wgStylePath, $wgUseRCPatrol, $wgParser; + global $wgEnableParserCache, $wgStylePath, $wgParser; global $wgUseTrackbacks, $wgNamespaceRobotPolicies, $wgArticleRobotPolicies; $sk = $wgUser->getSkin(); @@ -868,7 +868,7 @@ class Article { # If we have been passed an &rcid= parameter, we want to give the user a # chance to mark this new article as patrolled. - if ( $wgUseRCPatrol && !is_null( $rcid ) && $rcid != 0 && $wgUser->isAllowed( 'patrol' ) ) { + if (!is_null( $rcid ) && $rcid != 0 && $wgUser->isAllowed( 'patrol' ) ) { $wgOut->addHTML( "