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...
'MakeGlobalVariablesScript': called right before Skin::makeVariablesScript is executed
&$vars: variable (or multiple variables) to be added into the output
of Skin::makeVariablesScript
'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
'MarkPatrolled': before an edit is marked patrolled
$rcid: ID of the revision to be marked patrolled
$vars['wgAjaxWatch'] = $msgs;
}
$vars['wgAjaxWatch'] = $msgs;
}
- wfRunHooks('MakeGlobalVariablesScript', array( &$vars, &$wgUser ) );
+ wfRunHooks('MakeGlobalVariablesScript', array(&$vars));
return self::makeVariablesScript( $vars );
}
return self::makeVariablesScript( $vars );
}