Page 1 of 1

GuMax 3.2.1 in MW 1.19 (Skin::makeGlobalVariablesScript)

Posted: December 22nd, 2011, 2:00 am
by Sachant
Hi Paul,

GuMax 3.2.1 in MediaWiki 1.19 gives the following error: Fatal error: Call to undefined method Skin::makeGlobalVariablesScript() in /home/content/wiki/skins/GuMax.php on line 90

The line in question is:

Code: Select all

<?php print Skin::makeGlobalVariablesScript( $this->data ); ?> 
From what I've found, makeGlobalVariablesScript was removed after 1.17. Is there something else I can put in there to get around this?

Thanks!

Re: GuMax 3.2.1 in MW 1.19 (Skin::makeGlobalVariablesScript)

Posted: December 23rd, 2011, 9:52 am
by Paul
Yep, new wiki keeps messing up core function, and keeps breaking all skins as well.

Try replace the line with this:

Code: Select all

<?php wfRunHooks( 'MakeGlobalVariablesScript', array( $this->data ) ); ?>
Test all your extensions to see if they are still working...