From d81d69377a53f347eab1bef898dc405d3b5940e9 Mon Sep 17 00:00:00 2001 From: PhilW Date: Mon, 26 Aug 2013 13:45:30 +0100 Subject: use template file name rather than special attribute --- program/include/rcmail_output_html.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'program/include') diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index 39f79d119..ebf71cb3f 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -926,11 +926,11 @@ class rcmail_output_html extends rcmail_output $attrib += array('alt' => $this->xml_command(array('', 'object', 'name="productname"'))); if (is_array($this->config->get('skin_logo'))) { - if (isset($attrib['type']) && array_key_exists($attrib['type'], $this->config->get('skin_logo'))) { - $attrib['src'] = $this->config->get('skin_logo')[$attrib['type']]; + if ($logo = $this->config->get('skin_logo')[$this->template_name]) { + $attrib['src'] = $logo; } - elseif (array_key_exists('default', $this->config->get('skin_logo'))) { - $attrib['src'] = $this->config->get('skin_logo')['default']; + elseif ($logo = $this->config->get('skin_logo')['*']) { + $attrib['src'] = $logo; } } elseif ($logo = $this->config->get('skin_logo')) { -- cgit v1.2.3