From: Greg Maxwell Date: Mon, 29 Oct 2007 20:38:58 +0000 (+0000) Subject: Resolve bug 1405 (http://bugzilla.wikimedia.org/show_bug.cgi?id=1405). New option... X-Git-Tag: 1.31.0-rc.0~51063 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=5bb01bb1c5bf593fc51a6c4e4b15a526ed18b3c3;p=lhc%2Fweb%2Fwiklou.git Resolve bug 1405 (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. --- 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( "