Revert r111168 (removed of $wgArticle) since it seems that this is too early for...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 12 Feb 2012 14:38:42 +0000 (14:38 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 12 Feb 2012 14:38:42 +0000 (14:38 +0000)
includes/Wiki.php

index 581bfdd..04a6eb3 100644 (file)
@@ -267,6 +267,13 @@ class MediaWiki {
                        $article = $this->initializeArticle();
                        if ( is_object( $article ) ) {
                                $pageView = true;
+                               /**
+                                * $wgArticle is deprecated, do not use it.
+                                * @deprecated since 1.18
+                                */
+                               global $wgArticle;
+                               $wgArticle = $article;
+
                                $this->performAction( $article );
                        } elseif ( is_string( $article ) ) {
                                $output->redirect( $article );