Revision: 43632
Author: brion
Date: 2008-11-17 20:04:50 +0000 (Mon, 17 Nov 2008)
Log Message:
-----------
Revert r43592 "Pass the user object in MakeGlobalVariablesScript in case some
variables are user-dependent."
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...
Modified Paths:
--------------
trunk/phase3/docs/hooks.txt
trunk/phase3/includes/Skin.php
Modified: trunk/phase3/docs/hooks.txt
===================================================================
--- trunk/phase3/docs/hooks.txt 2008-11-17 19:57:00 UTC (rev 43631)
+++ trunk/phase3/docs/hooks.txt 2008-11-17 20:04:50 UTC (rev 43632)
@@ -889,7 +889,6 @@
'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
Modified: trunk/phase3/includes/Skin.php
===================================================================
--- trunk/phase3/includes/Skin.php 2008-11-17 19:57:00 UTC (rev 43631)
+++ trunk/phase3/includes/Skin.php 2008-11-17 20:04:50 UTC (rev 43632)
@@ -409,7 +409,7 @@
$vars['wgAjaxWatch'] = $msgs;
}
- wfRunHooks('MakeGlobalVariablesScript', array( &$vars, &$wgUser
) );
+ wfRunHooks('MakeGlobalVariablesScript', array(&$vars));
return self::makeVariablesScript( $vars );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs