From 4436efd069260cb957fabf60c889706986a45e88 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 27 Oct 2008 20:41:35 +0000 Subject: [PATCH] Use array() for the setup functions so it works on PHP < 5.2.3 --- InputBox.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InputBox.php b/InputBox.php index d5129e48..aa79590f 100644 --- a/InputBox.php +++ b/InputBox.php @@ -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' ); }