'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
$vars['wgAjaxWatch'] = $msgs;
}
- wfRunHooks('MakeGlobalVariablesScript', array(&$vars));
+ wfRunHooks('MakeGlobalVariablesScript', array( &$vars, &$wgUser ) );
return self::makeVariablesScript( $vars );
}