X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialApiHelp.php;h=74b474ace46d4520abe5c5545ad5621137b98f3f;hp=b43911f56d94e4046b80db1f22bece791b010aa5;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hpb=15e557215c628a9dadefef57e75dee4dead21807 diff --git a/includes/specials/SpecialApiHelp.php b/includes/specials/SpecialApiHelp.php index b43911f56d..74b474ace4 100644 --- a/includes/specials/SpecialApiHelp.php +++ b/includes/specials/SpecialApiHelp.php @@ -39,13 +39,13 @@ class SpecialApiHelp extends UnlistedSpecialPage { // These come from transclusions $request = $this->getRequest(); - $options = array( + $options = [ 'action' => 'help', 'nolead' => true, 'submodules' => $request->getCheck( 'submodules' ), 'recursivesubmodules' => $request->getCheck( 'recursivesubmodules' ), 'title' => $request->getVal( 'title', $this->getPageTitle( '$1' )->getPrefixedText() ), - ); + ]; // These are for linking from wikitext, since url parameters are a pain // to do. @@ -78,7 +78,7 @@ class SpecialApiHelp extends UnlistedSpecialPage { try { $module = $main->getModuleFromPath( $moduleName ); } catch ( UsageException $ex ) { - $this->getOutput()->addHTML( Html::rawElement( 'span', array( 'class' => 'error' ), + $this->getOutput()->addHTML( Html::rawElement( 'span', [ 'class' => 'error' ], $this->msg( 'apihelp-no-such-module', $moduleName )->inContentLanguage()->parse() ) ); return;