mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +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
|
|
@ -23,10 +23,31 @@ class layoutAdminModel extends layout
|
|||
|
||||
Context::set('is_sitemap', '1');
|
||||
$script = '<script src="./modules/layout/tpl/js/layout_modify.js"></script>';
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
$oTemplate = TemplateHandler::getInstance();
|
||||
$html = $oTemplate->compile($this->module_path.'tpl/', 'layout_info_view');
|
||||
|
||||
$this->add('html', $script.$html);
|
||||
preg_match_all('/<!--#JSPLUGIN:(.*)-->/', $html, $m);
|
||||
$pluginList = $m[1];
|
||||
|
||||
foreach($pluginList as $plugin)
|
||||
{
|
||||
$info = Context::getJavascriptPluginInfo($plugin);
|
||||
if(!$info)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
foreach($info->jsList as $js)
|
||||
{
|
||||
$script .= sprintf('<script src="%s"></script>', $js);
|
||||
}
|
||||
foreach($info->cssList as $css)
|
||||
{
|
||||
$csss .= sprintf('<link rel="stylesheet" href="%s" />', $css);
|
||||
}
|
||||
}
|
||||
|
||||
$this->add('html', $csss . $script . $html);
|
||||
|
||||
if($isReturn)
|
||||
{
|
||||
|
|
@ -170,6 +191,14 @@ class layoutAdminModel extends layout
|
|||
return 0;
|
||||
}
|
||||
|
||||
$oModel = getModel('layout');
|
||||
$layout_info = $oModel->getLayout($designInfo->{$target});
|
||||
|
||||
if(!$layout_info)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return $designInfo->{$target};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue