Use array() for the setup functions so it works on PHP < 5.2.3

This commit is contained in:
Chad Horohoe 2008-10-27 20:41:35 +00:00
parent 05e7df43bd
commit 4436efd069

View file

@ -52,8 +52,8 @@ $wgAutoloadClasses['InputBox'] = $dir . 'InputBox.classes.php';
// Register parser hook
if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
// Modern
$wgHooks['ParserFirstCallInit'][] = 'InputBoxHooks::register';
$wgHooks['ParserFirstCallInit'][] = array( 'InputBoxHooks', 'register' );
} else {
// Legacy
$wgExtensionFunctions[] = 'InputBoxHooks::register';
$wgExtensionFunctions[] = array( 'InputBoxHooks', 'register' );
}