git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12108
7612ce4b-ef26-0410-bec9-
ea0150e637f0
* Send HTTP header(s) to browser.
*
* Subclasses can override this function if headers are
- * managed differently in the template set's target output
+ * managed differently in the engine's target output
* interface.
*
* @param mixed $headers A list of (or a single) header
if (!is_array($headers)) $headers = array($headers);
foreach ($headers as $header) {
- header($header);
+ $this->assign('header', $header);
+ header($this->fetch('header.tpl'));
}
}
--- /dev/null
+<?php
+
+/**
+ * header.tpl
+ *
+ * Template for constructing a header that is sent to the browser.
+ *
+ * The following variables are available in this template:
+ * + $header - The header string to be sent
+ *
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package squirrelmail
+ * @subpackage templates
+ */
+
+
+// retrieve the template vars
+//
+extract($t);
+
+
+echo $header;
+
+