diff --git a/includes/Wiki.php b/includes/Wiki.php index c447b242530..1f9c9393a7c 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" );