diff --git a/flextype/core/Plugins.php b/flextype/core/Plugins.php index 257aed51..7d664cdd 100755 --- a/flextype/core/Plugins.php +++ b/flextype/core/Plugins.php @@ -51,7 +51,7 @@ class Plugins * * @access public */ - public function getLocales() : array + public function getLocales() { return $this->locales; } @@ -90,9 +90,10 @@ class Plugins } else { // Save plugins dictionary $dictionary = $this->getPluginsDictionary($plugins_list, $locale); - $this->flextype['cache']->save($locale, $dictionary); + $this->flextype['cache']->save($locale, $dictionary[$locale]); } + } else { // If Plugins List isnt empty if (is_array($plugins_list) && count($plugins_list) > 0) { @@ -158,7 +159,7 @@ class Plugins // Save plugins dictionary $dictionary = $this->getPluginsDictionary($plugins_list, $locale); - $this->flextype['cache']->save($locale, $dictionary); + $this->flextype['cache']->save($locale, $dictionary[$locale]); } }