Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/162141
Change subject: Don't juggle Article anymore, we don't do that either
......................................................................
Don't juggle Article anymore, we don't do that either
Change-Id: I7ff9f03bd24166f1ab03afec0c43016ce241a301
---
M docs/globals.txt
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/41/162141/1
diff --git a/docs/globals.txt b/docs/globals.txt
index 8b4c755..5b1501c 100644
--- a/docs/globals.txt
+++ b/docs/globals.txt
@@ -14,16 +14,14 @@
# Save current globals
$oldTitle = $wgTitle;
- $oldArticle = $wgArticle;
# Generate the HTML
$wgTitle = Title::newFromText( $t );
- $wgArticle = new Article;
- $wgArticle->view();
+ $article = new Article( $wgTitle );
+ $article->view();
# Restore globals
$wgTitle = $oldTitle
- $wgArticle = $oldArticle
Some of the current MediaWiki developers have an idle fantasy that some day,
globals will be eliminated from MediaWiki entirely, replaced by an application
--
To view, visit https://gerrit.wikimedia.org/r/162141
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ff9f03bd24166f1ab03afec0c43016ce241a301
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits