r111297 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111296‎ | r111297 | r111298 >
Date:14:38, 12 February 2012
Author:ialex
Status:ok
Tags:
Comment:
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).
Modified paths:
  • /trunk/phase3/includes/Wiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Wiki.php
@@ -267,6 +267,13 @@
268268 $article = $this->initializeArticle();
269269 if ( is_object( $article ) ) {
270270 $pageView = true;
 271+ /**
 272+ * $wgArticle is deprecated, do not use it.
 273+ * @deprecated since 1.18
 274+ */
 275+ global $wgArticle;
 276+ $wgArticle = $article;
 277+
271278 $this->performAction( $article );
272279 } elseif ( is_string( $article ) ) {
273280 $output->redirect( $article );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111168GOOD BYE $wgArticle!...ialex17:00, 10 February 2012

Status & tagging log