Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1554,8 +1554,9 @@ |
1555 | 1555 | * @param $args Array Arguments to the method |
1556 | 1556 | */ |
1557 | 1557 | function __call( $fname, $args ) { |
1558 | | - if ( method_exists( 'Linker', $fname ) ) { |
1559 | | - return call_user_func_array( array( 'Linker', $fname ), $args ); |
| 1558 | + $realFunction = array( 'Linker', $fname ); |
| 1559 | + if ( is_callable( $realFunction ) ) { |
| 1560 | + return call_user_func_array( $realFunction, $args ); |
1560 | 1561 | } else { |
1561 | 1562 | $className = get_class( $this ); |
1562 | 1563 | throw new MWException( "Call to undefined method $className::$fname" ); |