X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FOutputPage.php;h=2a3a7cd147d71af382de576bba9a01f34422a210;hp=24a506c7aaf1d13fc42cdabb4c2c7dade75b8091;hb=6c9a2923fe1ee3a65cb027be5e781772f2b12fbd;hpb=dae4c94d893057345f62a3d498fb85c0a54de5a6 diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 24a506c7aa..2a3a7cd147 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -295,7 +295,7 @@ class OutputPage extends ContextSource { private $mEnableSectionEditLinks = true; /** - * @var string|null The URL to send in a element with rel=copyright + * @var string|null The URL to send in a element with rel=license */ private $copyrightUrl; @@ -571,6 +571,7 @@ class OutputPage extends ContextSource { * @param bool $filter Whether to filter out insufficiently trustworthy modules * @param string|null $position If not null, only return modules with this position * @param string $param + * @param string $type * @return array Array of module names */ public function getModules( $filter = false, $position = null, $param = 'mModules', @@ -688,7 +689,7 @@ class OutputPage extends ContextSource { * Add one or more head items to the output * * @since 1.28 - * @param string|string[] $value Raw HTML + * @param string|string[] $values Raw HTML */ public function addHeadItems( $values ) { $this->mHeadItems = array_merge( $this->mHeadItems, (array)$values ); @@ -1715,7 +1716,7 @@ class OutputPage extends ContextSource { * Add wikitext with a custom Title object * * @param string $text Wikitext - * @param Title $title + * @param Title &$title * @param bool $linestart Is this the start of a line? */ public function addWikiTextWithTitle( $text, &$title, $linestart = true ) { @@ -1726,7 +1727,7 @@ class OutputPage extends ContextSource { * Add wikitext with a custom Title object and tidy enabled. * * @param string $text Wikitext - * @param Title $title + * @param Title &$title * @param bool $linestart Is this the start of a line? */ function addWikiTextTitleTidy( $text, &$title, $linestart = true ) { @@ -1899,7 +1900,7 @@ class OutputPage extends ContextSource { /** * Add the output of a QuickTemplate to the output buffer * - * @param QuickTemplate $template + * @param QuickTemplate &$template */ public function addTemplate( &$template ) { $this->addHTML( $template->getHTML() ); @@ -1963,7 +1964,7 @@ class OutputPage extends ContextSource { } /** - * @param $maxage + * @param int $maxage * @deprecated since 1.27 Use setCdnMaxage() instead */ public function setSquidMaxage( $maxage ) { @@ -2908,6 +2909,18 @@ class OutputPage extends ContextSource { $pieces[] = $this->buildExemptModules(); $pieces = array_merge( $pieces, array_values( $this->getHeadLinksArray() ) ); $pieces = array_merge( $pieces, array_values( $this->mHeadItems ) ); + + $min = ResourceLoader::inDebugMode() ? '' : '.min'; + // Use an IE conditional comment to serve the script only to old IE + $pieces[] = ''; + $pieces[] = Html::closeElement( 'head' ); $bodyClasses = []; @@ -3446,7 +3459,7 @@ class OutputPage extends ContextSource { if ( $copyright ) { $tags['copyright'] = Html::element( 'link', [ - 'rel' => 'copyright', + 'rel' => 'license', 'href' => $copyright ] ); } @@ -3785,7 +3798,7 @@ class OutputPage extends ContextSource { * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise. * * @since 1.27 - * @param string $remotePath URL path prefix that points to $localPath + * @param string $remotePathPrefix URL path prefix that points to $localPath * @param string $localPath File directory exposed at $remotePath * @param string $file Path to target file relative to $localPath * @return string URL