mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 01:12:14 +09:00
issue 485 if new lang add, langcode manager apply admin layout.
but layout should be not apply to langcode manager git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9646 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
75478d2757
commit
8ddabdefee
4 changed files with 8 additions and 2 deletions
|
|
@ -440,6 +440,8 @@
|
|||
function procModuleAdminInsertLang() {
|
||||
// Get language code
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$target = Context::get('target');
|
||||
$module = Context::get('module');
|
||||
$args->site_srl = (int)$site_module_info->site_srl;
|
||||
$args->name = str_replace(' ','_',Context::get('lang_code'));
|
||||
$args->lang_name = str_replace(' ','_',Context::get('lang_name'));
|
||||
|
|
@ -472,7 +474,7 @@
|
|||
$this->add('name', $args->name);
|
||||
$this->setMessage("success_saved", 'info');
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispModuleAdminLangcode');
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', $module, 'target', $target, 'act', 'dispModuleAdminLangcode');
|
||||
$this->setRedirectUrl($returnUrl);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue