Fix for r88898: fix variable name
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 26 May 2011 19:56:42 +0000 (19:56 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 26 May 2011 19:56:42 +0000 (19:56 +0000)
includes/Wiki.php

index c447b24..1f9c939 100644 (file)
@@ -189,8 +189,8 @@ class MediaWiki {
                                $this->performAction( $article );
                                wfProfileOut( __METHOD__ );
                                return $article;
-                       } elseif ( is_string( $new_article ) ) {
-                               $this->context->output->redirect( $new_article );
+                       } elseif ( is_string( $article ) ) {
+                               $this->context->output->redirect( $article );
                        } else {
                                wfProfileOut( __METHOD__ );
                                throw new MWException( "Shouldn't happen: MediaWiki::initializeArticle() returned neither an object nor a URL" );