diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-08 04:30:25 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-08 04:30:25 +0400 |
commit | e0041ed7b429659cd9fb89da037452113eb751a3 (patch) | |
tree | aa2d23b86287c5fb2a334aa58d77d506d6826c8d /core/AssetManager.php | |
parent | fe887785cdc82cb1de70edae2385b670e0252752 (diff) |
Refs #4961 Another fix. Let me know if you still see notices/warnings related to this
Diffstat (limited to 'core/AssetManager.php')
-rw-r--r-- | core/AssetManager.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/AssetManager.php b/core/AssetManager.php index 8868cab18e..2b790c2166 100644 --- a/core/AssetManager.php +++ b/core/AssetManager.php @@ -71,8 +71,10 @@ class AssetManager extends Singleton $this->cacheBuster = UIAssetCacheBuster::getInstance(); $this->minimalStylesheetFetcher = new StaticUIAssetFetcher(array('plugins/Zeitgeist/stylesheets/base.less'), array(), $this->theme); - if(Manager::getInstance()->getThemeEnabled() != null) + $theme = Manager::getInstance()->getThemeEnabled(); + if(!empty($theme)) { $this->theme = new Theme(); + } } /** |