mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 1641, fixed a bug, Display user lang TRUE key code when selecting undefined language
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10407 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
89f224420c
commit
8aa01caea2
2 changed files with 60 additions and 13 deletions
|
|
@ -699,6 +699,8 @@
|
|||
}
|
||||
function _replaceLangCode($matches) {
|
||||
static $lang = null;
|
||||
|
||||
|
||||
if(is_null($lang)) {
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
if(!$site_module_info){
|
||||
|
|
@ -712,7 +714,18 @@
|
|||
$oModuleAdminController->makeCacheDefinedLangCode($site_module_info->site_srl);
|
||||
}
|
||||
|
||||
if(file_exists($cache_file)) require_once($cache_file);
|
||||
if(file_exists($cache_file))
|
||||
{
|
||||
$moduleAdminControllerMtime = filemtime(_XE_PATH_ . 'modules/module/module.admin.controller.php');
|
||||
$cacheFileMtime = filemtime($cache_file);
|
||||
if($cacheFileMtime < $moduleAdminControllerMtime)
|
||||
{
|
||||
$oModuleAdminController = &getAdminController('module');
|
||||
$oModuleAdminController->makeCacheDefinedLangCode($site_module_info->site_srl);
|
||||
}
|
||||
|
||||
require_once($cache_file);
|
||||
}
|
||||
}
|
||||
if(!Context::get($matches[1]) && $lang[$matches[1]]) return $lang[$matches[1]];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue