Partial revert of 160b49be4e0fcf4f89d9cb366acba6e15a1c6758
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 24 Nov 2010 16:12:24 +0000 (09:12 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 24 Nov 2010 16:12:24 +0000 (09:12 -0700)
We want filenames stored in _cssThemeFiles to prevent duplicates.

framework/Core/lib/Horde/Themes/Css.php

index 84ea482..2e1c3aa 100644 (file)
@@ -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()