X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=blobdiff_plain;f=includes%2FOutputPage.php;h=b6c48abba22fbdd4de8548c60f576c4e40cfe651;hb=5928784f9936aafebbba597c6d6ddc04db5f4d7b;hp=753c3b7a25c34c8b559966912175f6edd46b9ea0;hpb=ce3a2f56216256aa22d709e810107c592655034b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 753c3b7a25..b6c48abba2 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -633,7 +633,7 @@ class OutputPage extends ContextSource { } /** - * Add or replace an header item to the output + * Add or replace a head item to the output * * Whenever possible, use more specific options like ResourceLoader modules, * OutputPage::addLink(), OutputPage::addMetaLink() and OutputPage::addFeedLink() @@ -648,6 +648,16 @@ class OutputPage extends ContextSource { $this->mHeadItems[$name] = $value; } + /** + * Add one or more head items to the output + * + * @since 1.28 + * @param string|string[] $value Raw HTML + */ + public function addHeadItems( $values ) { + $this->mHeadItems = array_merge( $this->mHeadItems, (array)$values ); + } + /** * Check if the header item $name is already set *