*/
class ApiHelp extends ApiBase {
public function execute() {
- global $wgContLang;
-
$params = $this->extractRequestParams();
$modules = array();
$info[] = $context->msg( "apihelp-{$path}-paraminfo-{$tag}" )
->numParams( count( $i ) )
->params( $context->getLanguage()->commaList( $i ) )
+ ->params( $module->getModulePrefix() )
->parse();
}
}
$module->modifyHelp( $help, $options );
- wfRunHooks( 'APIHelpModifyOutput', array( $module, &$help, $options ) );
+ Hooks::run( 'APIHelpModifyOutput', array( $module, &$help, $options ) );
$out .= join( "\n", $help );
}