Revert r43592 "Pass the user object in MakeGlobalVariablesScript in case some variabl...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 17 Nov 2008 20:04:50 +0000 (20:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 17 Nov 2008 20:04:50 +0000 (20:04 +0000)
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...

docs/hooks.txt
includes/Skin.php

index 89d1cd2..4fe332c 100644 (file)
@@ -889,7 +889,6 @@ $variableIDs: array of strings
 '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 8bb0f41..1da33ec 100644 (file)
@@ -409,7 +409,7 @@ class Skin extends Linker {
                        $vars['wgAjaxWatch'] = $msgs;
                }
 
-               wfRunHooks('MakeGlobalVariablesScript', array( &$vars, &$wgUser ) );
+               wfRunHooks('MakeGlobalVariablesScript', array(&$vars));
 
                return self::makeVariablesScript( $vars );
        }