From 5f5192f553f6b463798c76393f50eddae7c13fae Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 2 Jan 2011 14:29:04 +0000 Subject: [PATCH] Replaced call to in_string() by strpos() since the former is not available at the time this function is called from WebStart.php (was breaking the installer) --- includes/MWFunction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/MWFunction.php b/includes/MWFunction.php index 3622b69469..2f79ba575b 100644 --- a/includes/MWFunction.php +++ b/includes/MWFunction.php @@ -23,7 +23,7 @@ class MWFunction { protected static function cleanCallback( $callback ) { if( is_string( $callback ) ) { - if ( in_string( '::', $callback ) ) { + if ( strpos( $callback, '::' ) !== false ) { //PHP 5.1 cannot use call_user_func( 'Class::Method' ) //It can only handle only call_user_func( array( 'Class', 'Method' ) ) $callback = explode( '::', $callback, 2); -- 2.20.1