r95688 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95687‎ | r95688 | r95689 >
Date:19:16, 29 August 2011
Author:ialex
Status:ok
Tags:
Comment:
Follow-up r95661: use the Parser object passed as argument instead of always $wgParser
Modified paths:
  • /trunk/extensions/WikiTweet/WikiTweet.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiTweet/WikiTweet.php
@@ -46,10 +46,9 @@
4747 $wgAPIListModules['wikitweet'] = 'ApiQueryWikiTweet';
4848 $wgAutoloadClasses['WikiTweetFunctions'] = "$dir/WikiTweet.functions.php";
4949
50 -function wfWikiTweetRegisterHook()
 50+function wfWikiTweetRegisterHook( $parser )
5151 {
52 - global $wgParser;
53 - $wgParser->setHook( 'wiki-tweet', 'wikiTweeterRender' );
 52+ $parser->setHook( 'wiki-tweet', 'wikiTweeterRender' );
5453 return true;
5554 }
5655

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95661fix r87531faurethomas14:15, 29 August 2011

Status & tagging log