mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
034a5c0288
commit
f70ce644ce
1410 changed files with 7188 additions and 53541 deletions
|
|
@ -54,8 +54,33 @@ class moduleAdminModel extends module
|
|||
return $output;
|
||||
}
|
||||
|
||||
function getSelectedManageHTML($grantList, $tabChoice = array())
|
||||
function getSelectedManageHTML($grantList, $tabChoice = array(), $modulePath = NULL)
|
||||
{
|
||||
if($modulePath)
|
||||
{
|
||||
// get the skins path
|
||||
$oModuleModel = &getModel('module');
|
||||
$skin_list = $oModuleModel->getSkins($modulePath);
|
||||
Context::set('skin_list',$skin_list);
|
||||
|
||||
$mskin_list = $oModuleModel->getSkins($modulePath, "m.skins");
|
||||
Context::set('mskin_list', $mskin_list);
|
||||
}
|
||||
|
||||
// get the layouts path
|
||||
$oLayoutModel = &getModel('layout');
|
||||
$layout_list = $oLayoutModel->getLayoutList();
|
||||
Context::set('layout_list', $layout_list);
|
||||
|
||||
$mobile_layout_list = $oLayoutModel->getLayoutList(0,"M");
|
||||
Context::set('mlayout_list', $mobile_layout_list);
|
||||
|
||||
$security = new Security();
|
||||
$security->encodeHTML('layout_list..layout', 'layout_list..title');
|
||||
$security->encodeHTML('mlayout_list..layout', 'mlayout_list..title');
|
||||
$security->encodeHTML('skin_list..title');
|
||||
$security->encodeHTML('mskin_list..title');
|
||||
|
||||
$grant_list =new stdClass();
|
||||
// Grant virtual permission for access and manager
|
||||
if(!$grantList)
|
||||
|
|
@ -369,9 +394,16 @@ class moduleAdminModel extends module
|
|||
* @brief Get values for a particular language code
|
||||
* Return its corresponding value if lang_code is specified. Otherwise return $name.
|
||||
*/
|
||||
function getLangCode($site_srl, $name)
|
||||
function getLangCode($site_srl, $name, $isFullLanguage = FALSE)
|
||||
{
|
||||
$lang_supported = Context::get('lang_supported');
|
||||
if($isFullLanguage)
|
||||
{
|
||||
$lang_supported = Context::loadLangSupported();
|
||||
}
|
||||
else
|
||||
{
|
||||
$lang_supported = Context::get('lang_supported');
|
||||
}
|
||||
|
||||
if(substr($name,0,12)=='$user_lang->')
|
||||
{
|
||||
|
|
@ -529,6 +561,9 @@ class moduleAdminModel extends module
|
|||
Context::set('lang_code_list', $output->data);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
|
||||
$oSecurity = new Security();
|
||||
$oSecurity->encodeHTML('lang_code_list..');
|
||||
|
||||
$oTemplate = TemplateHandler::getInstance();
|
||||
$tpl = $oTemplate->compile('./modules/module/tpl', 'multilingual_v17_list.html');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue