From 1402a56f2ad8ea15e705b0eb5805d9c43ba9e74e Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 4 Apr 2011 03:42:34 +0000 Subject: [PATCH] Fix for r85244: HipHop does not support the static form of method_exists(). --- includes/Skin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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" ); -- 2.20.1