* [MOD] Plugins module icon is now on main menu

* [MOD] Code refactoring
This commit is contained in:
nuxsmin
2018-08-31 00:11:55 +02:00
parent b106ae6892
commit 42471b4680
13 changed files with 252 additions and 302 deletions

View File

@@ -163,7 +163,9 @@ final class Theme implements ThemeInterface
private function initIcons()
{
try {
if (!$this->fileCache->isExpired(self::ICONS_CACHE_FILE, self::CACHE_EXPIRE)) {
if ($this->context->getAppStatus() !== SessionContext::APP_STATUS_RELOADED
&& !$this->fileCache->isExpired(self::ICONS_CACHE_FILE, self::CACHE_EXPIRE)
) {
$this->icons = $this->fileCache->load(self::ICONS_CACHE_FILE);
logger('Loaded icons cache', 'INFO');