From eb21c45d1976f4a475e9a59fbfdb029910fcc14b Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 24 Nov 2010 09:12:24 -0700 Subject: [PATCH] Partial revert of 160b49be4e0fcf4f89d9cb366acba6e15a1c6758 We want filenames stored in _cssThemeFiles to prevent duplicates. --- framework/Core/lib/Horde/Themes/Css.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Core/lib/Horde/Themes/Css.php b/framework/Core/lib/Horde/Themes/Css.php index 84ea482a5..2e1c3aa7b 100644 --- a/framework/Core/lib/Horde/Themes/Css.php +++ b/framework/Core/lib/Horde/Themes/Css.php @@ -54,7 +54,7 @@ class Horde_Themes_Css */ public function addThemeStylesheet($file) { - $this->_cssThemeFiles[] = $file; + $this->_cssThemeFiles[$file] = true; } /** @@ -181,7 +181,7 @@ class Horde_Themes_Css ? $this->getBaseStylesheetList() : array(); - $css_list = array_unique(array_merge($css_list, $this->_cssThemeFiles)); + $css_list = array_unique(array_merge($css_list, array_keys($this->_cssThemeFiles))); $curr_app = empty($opts['app']) ? $GLOBALS['registry']->getApp() -- 2.11.0