From: Tim Starling Date: Mon, 4 Apr 2011 03:42:34 +0000 (+0000) Subject: Fix for r85244: HipHop does not support the static form of method_exists(). X-Git-Tag: 1.31.0-rc.0~31033 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=1402a56f2ad8ea15e705b0eb5805d9c43ba9e74e;p=lhc%2Fweb%2Fwiklou.git Fix for r85244: HipHop does not support the static form of method_exists(). --- diff --git a/includes/Skin.php b/includes/Skin.php index 9efb3f7322..7fbce41fd5 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1554,8 +1554,9 @@ abstract class Skin { * @param $args Array Arguments to the method */ function __call( $fname, $args ) { - if ( method_exists( 'Linker', $fname ) ) { - return call_user_func_array( array( 'Linker', $fname ), $args ); + $realFunction = array( 'Linker', $fname ); + if ( is_callable( $realFunction ) ) { + return call_user_func_array( $realFunction, $args ); } else { $className = get_class( $this ); throw new MWException( "Call to undefined method $className::$fname" );