mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-23 22:54:02 +00:00
Use array() for the setup functions so it works on PHP < 5.2.3
This commit is contained in:
parent
05e7df43bd
commit
4436efd069
|
@ -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' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue