mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 11:32:12 +09:00
Fix unnecessary reloading of user lang
This commit is contained in:
parent
d3b78d1d47
commit
455e39cbba
2 changed files with 5 additions and 4 deletions
|
|
@ -863,7 +863,7 @@ class moduleAdminController extends module
|
|||
$args->site_srl = $site_srl;
|
||||
}
|
||||
$output = executeQueryArray('module.getLang', $args);
|
||||
if(!$output->toBool() || !$output->data) return;
|
||||
if(!$output->toBool()) return;
|
||||
|
||||
$langMap = array();
|
||||
foreach($output->data as $lang)
|
||||
|
|
@ -905,7 +905,8 @@ class moduleAdminController extends module
|
|||
Rhymix\Framework\Cache::set('site_and_module:user_defined_langs:' . $args->site_srl . ':' . $langCode, $langMap[$langCode], 0, true);
|
||||
}
|
||||
|
||||
return $langMap[Context::getLangType()];
|
||||
$currentLang = Context::getLangType();
|
||||
return isset($langMap[$currentLang]) ? $langMap[$currentLang] : array();
|
||||
}
|
||||
|
||||
public function procModuleAdminSetDesignInfo()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue