From d9abf3d8b974744ad6df706a5c63438d8d4d5cc8 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 12 Feb 2012 14:38:42 +0000 Subject: [PATCH] Revert r111168 (removed of $wgArticle) since it seems that this is too early for some people; also removed the comment stating the removal was due in 1.20 (might want to be merged in 1.19). --- includes/Wiki.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/Wiki.php b/includes/Wiki.php index 581bfdd6d4..04a6eb33e6 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -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 ); -- 2.20.1