No more build
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 23 Nov 2010 22:24:02 +0000 (15:24 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 23 Nov 2010 22:47:19 +0000 (15:47 -0700)
framework/Core/lib/Horde/Themes/Css.php
framework/Core/lib/Horde/Themes/Element.php

index b027996..7600ac3 100644 (file)
@@ -191,16 +191,16 @@ class Horde_Themes_Css
             ? null
             : $opts['sub'];
 
-        $build = $GLOBALS['injector']->getInstance('Horde_Core_Factory_ThemesCache')->create($curr_app, $theme);
-        $this->_cacheid = $build->getCacheId();
+        $cache = $GLOBALS['injector']->getInstance('Horde_Core_Factory_ThemesCache')->create($curr_app, $theme);
+        $this->_cacheid = $cache->getCacheId();
 
         foreach ($css_list as $css_name) {
             if (empty($opts['subonly'])) {
-                $css_out = array_merge($css_out, array_reverse($build->getAll($css_name, $mask)));
+                $css_out = array_merge($css_out, array_reverse($cache->getAll($css_name, $mask)));
             }
 
             if ($sub) {
-                $css_out = array_merge($css_out, array_reverse($build->getAll($sub . '/' . $css_name, $mask)));
+                $css_out = array_merge($css_out, array_reverse($cache->getAll($sub . '/' . $css_name, $mask)));
             }
         }
 
index e60bee0..3f0d787 100644 (file)
@@ -121,12 +121,12 @@ class Horde_Themes_Element
                 'uri' => $registry->get('themesuri', $this->app) . '/' . $theme . '/' . $this->_dirname
             );
         } else {
-            $build = $GLOBALS['injector']->getInstance('Horde_Core_Factory_ThemesCache')->create($this->app, $theme);
+            $cache = $GLOBALS['injector']->getInstance('Horde_Core_Factory_ThemesCache')->create($this->app, $theme);
             $mask = empty($this->_opts['nohorde'])
                 ? 0
                 : Horde_Themes_Cache::APP_DEFAULT | Horde_Themes_Cache::APP_THEME;
 
-            $this->_data = $build->get($this->_dirname . '/' . $this->_name, $mask);
+            $this->_data = $cache->get($this->_dirname . '/' . $this->_name, $mask);
         }
 
         return $this->_data[$name];