From c933deae2afef75ac88a2705b14247817b3a00aa Mon Sep 17 00:00:00 2001 From: Platonides Date: Sat, 18 Jun 2011 14:55:22 +0000 Subject: [PATCH] Add deprecated $wgArticle again. Fixes r88588. --- includes/Wiki.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.20.1