Revert "Adding sanity check to Title::isRedirect()."
[lhc/web/wiklou.git] / includes / Wiki.php
index 581bfdd..b20cb95 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 = new DeprecatedGlobal( 'wgArticle', $article, '1.18' );
+
                                $this->performAction( $article );
                        } elseif ( is_string( $article ) ) {
                                $output->redirect( $article );