From: Tim Starling Date: Thu, 19 Jan 2006 17:10:57 +0000 (+0000) Subject: give the correct error message when an article doesn't exist X-Git-Tag: 1.6.0~478 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=bd738ff55bacf9f25384768d924e1bc391e028f7;p=lhc%2Fweb%2Fwiklou.git give the correct error message when an article doesn't exist --- diff --git a/includes/Article.php b/includes/Article.php index a528321547..e05fb8923e 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -816,8 +816,10 @@ class Article { $t = $this->mTitle->getPrefixedText(); if( $oldid ) { $t .= ',oldid='.$oldid; + $text = wfMsg( 'missingarticle', $t ); + } else { + $text = wfMsg( 'noarticletext', $t ); } - $text = wfMsg( 'missingarticle', $t ); } # Another whitelist check in case oldid is altering the title