For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Index: trunk/phase3/docs/hooks.txt =================================================================== --- trunk/phase3/docs/hooks.txt (revision 43591) +++ trunk/phase3/docs/hooks.txt (revision 43592) @@ -889,6 +889,7 @@ 'MakeGlobalVariablesScript': called right before Skin::makeVariablesScript is executed &$vars: variable (or multiple variables) to be added into the output of Skin::makeVariablesScript +&$wgUser: user (object) currently loading the skin 'MarkPatrolled': before an edit is marked patrolled $rcid: ID of the revision to be marked patrolled Index: trunk/phase3/includes/Skin.php =================================================================== --- trunk/phase3/includes/Skin.php (revision 43591) +++ trunk/phase3/includes/Skin.php (revision 43592) @@ -409,7 +409,7 @@ $vars['wgAjaxWatch'] = $msgs; } - wfRunHooks('MakeGlobalVariablesScript', array(&$vars)); + wfRunHooks('MakeGlobalVariablesScript', array( &$vars, &$wgUser ) ); return self::makeVariablesScript( $vars ); }
As a UI thingy, $wgUser will be the only relevant user object here; there's no circumstance in which we might pass some other user object. No reason to pass it to hooks just on the off chance that they might use it, then...
Reverted in r43632