From: Raimond Spekking Date: Thu, 29 Nov 2007 06:26:38 +0000 (+0000) Subject: * (bug 12143) Do not show a link to patrol new pages for non existent pages X-Git-Tag: 1.31.0-rc.0~50676 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=1fddc87aaa72840a70ec41fb69a515196cb54732;p=lhc%2Fweb%2Fwiklou.git * (bug 12143) Do not show a link to patrol new pages for non existent pages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e3a8ae0af9..b9768377ec 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -197,6 +197,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * The number of watching users in watchlists was always reported as 1 * namespaceDupes.php no longer dies when coming across an illegal title * Make API check for restrictions in the old format too. +* (bug 12143) Do not show a link to patrol new pages for non existent pages == Parser changes in 1.12 == diff --git a/includes/Article.php b/includes/Article.php index 56070b2905..d0e6f04de0 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -870,7 +870,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 (!is_null( $rcid ) && $rcid != 0 && $wgUser->isAllowed( 'patrol' ) ) { + if( !is_null( $rcid ) && $rcid != 0 && $wgUser->isAllowed( 'patrol' ) && $this->mTitle->exists() ) { $wgOut->addHTML( "