X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=f469732de8a33d5bfa426393eb8b49e293a21753;hb=8f33fc6a6236f23e2a52260f5cc28af241542a78;hp=854290477e5f8f07fe63b2fba08ad3a0526ce227;hpb=209f584b6c9bc7779e3eebb77d3a4cf65f3f1a67;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 854290477e..f469732de8 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1315,8 +1315,8 @@ class OutputPage extends ContextSource { /** * Set the highest level of CSS/JS untrustworthiness allowed - * @param $type String ResourceLoaderModule TYPE_ constant - * @param $level Int ResourceLoaderModule class constant + * @param $type String ResourceLoaderModule TYPE_ constant + * @param $level Int ResourceLoaderModule class constant */ public function setAllowedModules( $type, $level ) { $this->mAllowedModules[$type] = $level; @@ -1324,8 +1324,8 @@ class OutputPage extends ContextSource { /** * As for setAllowedModules(), but don't inadvertently make the page more accessible - * @param $type String - * @param $level Int ResourceLoaderModule class constant + * @param $type String + * @param $level Int ResourceLoaderModule class constant */ public function reduceAllowedModules( $type, $level ) { $this->mAllowedModules[$type] = min( $this->getAllowedModules( $type ), $level ); @@ -2530,12 +2530,15 @@ $templates // jQuery can work correctly. $ret .= Html::element( 'meta', array( 'http-equiv' => 'X-UA-Compatible', 'content' => 'IE=EDGE' ) ) . "\n"; - $ret .= implode( "\n", array( - $this->getHeadLinks(), - $this->buildCssLinks(), - $this->getHeadScripts(), + $ret .= ( + $this->getHeadLinks() . + "\n" . + $this->buildCssLinks() . + // No newline after buildCssLinks since makeResourceLoaderLink did that already + $this->getHeadScripts() . + "\n" . $this->getHeadItems() - ) ); + ); $closeHead = Html::closeElement( 'head' ); if ( $closeHead ) { @@ -2586,22 +2589,28 @@ $templates /** * TODO: Document - * @param $modules Array/string with the module name(s) + * @param array|string $modules One or more module names * @param string $only ResourceLoaderModule TYPE_ class constant - * @param $useESI boolean + * @param boolean $useESI * @param array $extraQuery with extra query parameters to add to each request. array( param => value ) - * @param $loadCall boolean If true, output an (asynchronous) mw.loader.load() call rather than a "