From: Alexandre Emsenhuber Date: Thu, 26 May 2011 19:56:42 +0000 (+0000) Subject: Fix for r88898: fix variable name X-Git-Tag: 1.31.0-rc.0~29920 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=f88d921ca2a8698ca138d4ec09a41a1db82b2df2;p=lhc%2Fweb%2Fwiklou.git Fix for r88898: fix variable name --- diff --git a/includes/Wiki.php b/includes/Wiki.php index c447b24253..1f9c9393a7 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -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" );