FU r96015: removed & in MakeGlobalVariablesScript hook
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 3 Nov 2011 22:21:19 +0000 (22:21 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 3 Nov 2011 22:21:19 +0000 (22:21 +0000)
includes/OutputPage.php

index af2f264..d11d483 100644 (file)
@@ -2692,7 +2692,7 @@ $templates
                // Use the 'ResourceLoaderGetConfigVars' hook if the variable is not
                // page-dependant but site-wide (without state).
                // Alternatively, you may want to use OutputPage->addJsConfigVars() instead.
-               wfRunHooks( 'MakeGlobalVariablesScript', array( &$vars, &$this ) );
+               wfRunHooks( 'MakeGlobalVariablesScript', array( &$vars, $this ) );
 
                // Merge in variables from addJsConfigVars last
                return array_merge( $vars, $this->mJsConfigVars );