/** * Get the active languages * * @return array */ public static function getActiveLanguages() { // validate the cache if (empty(self::$activeLanguages)) { // grab from settings $activeLanguages = (array) BackendModel::getModuleSetting('core', 'active_languages'); // store in cache self::$activeLanguages = $activeLanguages; } // return from cache return self::$activeLanguages; }