From bd738ff55bacf9f25384768d924e1bc391e028f7 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 19 Jan 2006 17:10:57 +0000 Subject: [PATCH] give the correct error message when an article doesn't exist --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.20.1