? 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)));
}
}
'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];