From: Tim Starling Date: Thu, 22 Mar 2007 22:56:16 +0000 (+0000) Subject: Fixed static member invocation, was broken since inception. X-Git-Tag: 1.31.0-rc.0~53635 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=81cbabb3a12737093283393c87f0b69a30a370cc;p=lhc%2Fweb%2Fwiklou.git Fixed static member invocation, was broken since inception. --- diff --git a/includes/Hooks.php b/includes/Hooks.php index dd3c0030a1..b428b08d7c 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -102,7 +102,7 @@ function wfRunHooks($event, $args = null) { if ( isset( $object ) ) { $func = get_class( $object ) . '::' . $method; $callback = array( $object, $method ); - } elseif ( false !== ( $pos = strpos( '::', $func ) ) ) { + } elseif ( false !== ( $pos = strpos( $func, '::' ) ) ) { $callback = array( substr( $func, 0, $pos ), substr( $func, $pos + 2 ) ); } else { $callback = $func;