issue 70 admin UI/UX developemnt in data import module

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8799 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-08-18 01:30:54 +00:00
parent e46231ae96
commit 5d415ec3c3
8 changed files with 147 additions and 17 deletions

View file

@ -466,14 +466,19 @@
$oModuleModel = &getModel('module');
// Variable setting for site keyword
$site_keyword = Context::get('site_keyword');
$site_srl = Context::get('site_srl');
// If there is no site keyword, use as information of the current virtual site
$args = null;
$logged_info = Context::get('logged_info');
$site_module_info = Context::get('site_module_info');
$args->site_keyword = $site_keyword;
if($site_keyword) $args->site_keyword = $site_keyword;
if($logged_info->is_admin == 'Y' && !$site_keyword) $args->site_srl = 0;
else $args->site_srl = (int)$site_module_info->site_srl;
if(!$site_srl)
{
if($logged_info->is_admin == 'Y' && !$site_keyword) $args->site_srl = 0;
else $args->site_srl = (int)$site_module_info->site_srl;
}
else $args->site_srl = $site_srl;
$args->sort_index1 = 'sites.domain';