X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=class%2Ftemplate%2FTemplate.class.php;h=204b7d3af19f03082a76d0760c7f72b6d95ceeca;hp=f6718178845a81742c1d9a28a0bf8b53253e6774;hb=1f2f93e6751d2c1b957aa7d197269b5c49df5d72;hpb=ccb5faf0a2fbf6dc7927234a0dddeddc4217d230 diff --git a/class/template/Template.class.php b/class/template/Template.class.php index f6718178..204b7d3a 100644 --- a/class/template/Template.class.php +++ b/class/template/Template.class.php @@ -1389,16 +1389,23 @@ FIXME: We could make the incoming array more complex so it can * * @param mixed $headers A list of (or a single) header * text to be sent. + * @param boolean $replace Whether or not to replace header(s) + * previously sent header(s) of the + * same type (this parameter may be + * ignored in some implementations + * of this class if the target interface + * does not support this functionality) + * (OPTIONAL; default = TRUE, always replace). * */ - function header($headers) + function header($headers, $replace=TRUE) { if (!is_array($headers)) $headers = array($headers); foreach ($headers as $header) { $this->assign('header', $header); - header($this->fetch('header.tpl')); + header($this->fetch('header.tpl'), $replace); } }