X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiHelp.php;h=dd05f45f46178a14f7f84f034d30e218af0be8b5;hb=68aab7ca8bd2bf7271a2f69aff1e7a60ab88078b;hp=b33b087e6dd436d110fbad1edf353d6b4c2ce10e;hpb=442c3d49ee1331ba395d3570a2e46ff5782c4d01;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index b33b087e6d..dd05f45f46 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -32,8 +32,6 @@ */ class ApiHelp extends ApiBase { public function execute() { - global $wgContLang; - $params = $this->extractRequestParams(); $modules = array(); @@ -548,10 +546,10 @@ class ApiHelp extends ApiBase { } if ( $description ) { - $help['parameters'] .= Html::openElement( 'dd', - array( 'class' => 'description' ) ); - $help['parameters'] .= join( '', $description ); - $help['parameters'] .= Html::closeElement( 'dd' ); + $description = join( '', $description ); + $description = preg_replace( '!\s*\s*<\1>\s*!', "\n", $description ); + $help['parameters'] .= Html::rawElement( 'dd', + array( 'class' => 'description' ), $description ); } foreach ( $info as $i ) { @@ -611,7 +609,7 @@ class ApiHelp extends ApiBase { $module->modifyHelp( $help, $options ); - wfRunHooks( 'APIHelpModifyOutput', array( $module, &$help, $options ) ); + Hooks::run( 'APIHelpModifyOutput', array( $module, &$help, $options ) ); $out .= join( "\n", $help ); }