From: Platonides Date: Sat, 18 Jun 2011 14:55:22 +0000 (+0000) Subject: Add deprecated $wgArticle again. Fixes r88588. X-Git-Tag: 1.31.0-rc.0~29445 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=c933deae2afef75ac88a2705b14247817b3a00aa;p=lhc%2Fweb%2Fwiklou.git Add deprecated $wgArticle again. Fixes r88588. --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 3db5835aeb..9c6c1dacbd 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -198,6 +198,14 @@ class MediaWiki { // may be a redirect to another article or URL. $article = $this->initializeArticle(); if ( is_object( $article ) ) { + /** + * $wgArticle is deprecated, do not use it. This will possibly be removed + * entirely in 1.20 or 1.21 + * @deprecated since 1.19 + */ + global $wgArticle; + $wgArticle = $article; + $this->performAction( $article ); wfProfileOut( __METHOD__ ); return $article;