From: Alexandre Emsenhuber Date: Sun, 12 Feb 2012 14:38:42 +0000 (+0000) Subject: Revert r111168 (removed of $wgArticle) since it seems that this is too early for... X-Git-Tag: 1.31.0-rc.0~24760 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=d9abf3d8b974744ad6df706a5c63438d8d4d5cc8;p=lhc%2Fweb%2Fwiklou.git 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). --- 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 );