From: Michael M Slusarz Date: Wed, 24 Nov 2010 16:12:24 +0000 (-0700) Subject: Partial revert of 160b49be4e0fcf4f89d9cb366acba6e15a1c6758 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=eb21c45d1976f4a475e9a59fbfdb029910fcc14b;p=horde.git Partial revert of 160b49be4e0fcf4f89d9cb366acba6e15a1c6758 We want filenames stored in _cssThemeFiles to prevent duplicates. --- 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()