* (bug 832) Return to user page after emailing a user
* (bug 366) Add local-system-timezone equivalents for date/time variables
* (bug 7109) Fix Atom feed version number in header links
-
+* (bug 7075) List registered parser function hooks on Special:Version
== Languages updated ==
# Add to function cache
$mw = MagicWord::get( $id );
- if ( !$mw ) {
- throw new MWException( 'The calling convention to Parser::setFunctionHook() has changed, ' .
- 'it is now required to pass a MagicWord ID as the first parameter.' );
- }
+ if( !$mw )
+ throw new MWException( 'Parser::setFunctionHook() expecting a magic word identifier.' );
$synonyms = $mw->getSynonyms();
$sensitive = intval( $mw->isCaseSensitive() );
return $oldVal;
}
+ /**
+ * Get all registered function hook identifiers
+ *
+ * @return array
+ */
+ function getFunctionHooks() {
+ return array_keys( $this->mFunctionHooks );
+ }
+
/**
* Replace <!--LINK--> link placeholders with actual links, in the buffer
* Placeholders created in Skin::makeLinkObj()
$out .= "** Parser extension tags:\n";
$out .= '***' . $this->listToText( $tags ). "\n";
}
+
+ if( $cnt = count( $fhooks = $wgParser->getFunctionHooks() ) ) {
+ $out .= "** Parser function hooks:\n";
+ $out .= '***' . $this->listToText( $fhooks ) . "\n";
+ }
if ( count( $wgSkinExtensionFunction ) ) {
$out .= "** Skin extension functions:\n";