Fixed static member invocation, was broken since inception.
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 22 Mar 2007 22:56:16 +0000 (22:56 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 22 Mar 2007 22:56:16 +0000 (22:56 +0000)
includes/Hooks.php

index dd3c003..b428b08 100644 (file)
@@ -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;