From 81cbabb3a12737093283393c87f0b69a30a370cc Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 22 Mar 2007 22:56:16 +0000 Subject: [PATCH] Fixed static member invocation, was broken since inception. --- includes/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1