From 1fddc87aaa72840a70ec41fb69a515196cb54732 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 29 Nov 2007 06:26:38 +0000 Subject: [PATCH] * (bug 12143) Do not show a link to patrol new pages for non existent pages --- RELEASE-NOTES | 1 + includes/Article.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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( "