Add deprecated $wgArticle again. Fixes r88588.
authorPlatonides <platonides@users.mediawiki.org>
Sat, 18 Jun 2011 14:55:22 +0000 (14:55 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 18 Jun 2011 14:55:22 +0000 (14:55 +0000)
includes/Wiki.php

index 3db5835..9c6c1da 100644 (file)
@@ -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;