From: Alexandre Emsenhuber Date: Sun, 2 Jan 2011 14:29:04 +0000 (+0000) Subject: Replaced call to in_string() by strpos() since the former is not available at the... X-Git-Tag: 1.31.0-rc.0~32880 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=5f5192f553f6b463798c76393f50eddae7c13fae;p=lhc%2Fweb%2Fwiklou.git 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) --- 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);