Replaced call to in_string() by strpos() since the former is not available at the...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 2 Jan 2011 14:29:04 +0000 (14:29 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 2 Jan 2011 14:29:04 +0000 (14:29 +0000)
includes/MWFunction.php

index 3622b69..2f79ba5 100644 (file)
@@ -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);