Index: trunk/phase3/includes/MWFunction.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | protected static function cleanCallback( $callback ) { |
25 | 25 | |
26 | 26 | if( is_string( $callback ) ) { |
27 | | - if ( in_string( '::', $callback ) ) { |
| 27 | + if ( strpos( $callback, '::' ) !== false ) { |
28 | 28 | //PHP 5.1 cannot use call_user_func( 'Class::Method' ) |
29 | 29 | //It can only handle only call_user_func( array( 'Class', 'Method' ) ) |
30 | 30 | $callback = explode( '::', $callback, 2); |