https://bugzilla.wikimedia.org/show_bug.cgi?id=16242
--- Comment #10 from Brion Vibber <[EMAIL PROTECTED]> 2008-11-14 21:52:09 UTC
---
Those are *function hooks* which are called directly with
call_user_func_array() and must be a PHP callable.
Things in $wgHooks are *not* directly called; they are parsed and munged and,
for backwards compatibility, we have retained that.
The relevant part of wfRunHooks() in Hooks.php is:
} elseif ( false !== ( $pos = strpos( $func, '::' ) ) ) {
$callback = array( substr( $func, 0, $pos ), substr( $func, $pos + 2 )
);
} else {
This will translate the 'InputBoxHooks::register' into
array('InputBoxHooks','register') which is the actual callable.
Can you confirm that you have a current version of both InputBox and MediaWiki
trunk? Confirm that your Hooks.php is current, and does not have the broken
version which broke these calls.
Can you then do some debugging to check the actual value of the callable at the
time it's called in wfRunHooks()?
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l