$info[] = $context->msg( "apihelp-{$path}-paraminfo-{$tag}" )
->numParams( count( $i ) )
->params( $context->getLanguage()->commaList( $i ) )
+ ->params( $module->getModulePrefix() )
->parse();
}
}
->parse();
}
- if ( !$description && !$info ) {
- $description[] = self::wrap(
+ if ( !array_filter( $description ) ) {
+ $description = array( self::wrap(
$context->msg( 'api-help-param-no-description' ),
'apihelp-empty'
- );
+ ) );
}
// Add "deprecated" flag
);
}
- public function getExamplesMessages() {
+ protected function getExamplesMessages() {
return array(
'action=help'
=> 'apihelp-help-example-main',