give the correct error message when an article doesn't exist
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 19 Jan 2006 17:10:57 +0000 (17:10 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 19 Jan 2006 17:10:57 +0000 (17:10 +0000)
includes/Article.php

index a528321..e05fb89 100644 (file)
@@ -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