mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +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
|
|
@ -73,6 +73,10 @@ class TemplateHandler
|
|||
{
|
||||
$tpl_path .= '/';
|
||||
}
|
||||
if(!is_dir($tpl_path))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(!file_exists($tpl_path . $tpl_filename) && file_exists($tpl_path . $tpl_filename . '.html'))
|
||||
{
|
||||
$tpl_filename .= '.html';
|
||||
|
|
@ -302,7 +306,7 @@ class TemplateHandler
|
|||
|
||||
$matches[2] = '<input type="hidden" name="ruleset" value="' . $m[1] . '" />' . $matches[2];
|
||||
//assign to addJsFile method for js dynamic recache
|
||||
$matches[1] = '<?php Context::addJsFile("' . $path . '", FALSE, "", 0, "head", TRUE, "' . $autoPath . '") ?' . '>' . $matches[1];
|
||||
$matches[1] = '<?php Context::addJsFile("' . $path . '", FALSE, "", 0, "body", TRUE, "' . $autoPath . '") ?' . '>' . $matches[1];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -372,7 +376,7 @@ class TemplateHandler
|
|||
|
||||
/**
|
||||
* preg_replace_callback hanlder
|
||||
*
|
||||
*
|
||||
* replace image path
|
||||
* @param array $match
|
||||
*
|
||||
|
|
@ -610,12 +614,14 @@ class TemplateHandler
|
|||
// <!--%load_js_plugin-->
|
||||
case 'load_js_plugin':
|
||||
$plugin = $this->_replaceVar($m[5]);
|
||||
$s = "<!--#JSPLUGIN:{$plugin}-->";
|
||||
if(strpos($plugin, '$__Context') === false)
|
||||
{
|
||||
$plugin = "'{$plugin}'";
|
||||
}
|
||||
|
||||
return "<?php Context::loadJavascriptPlugin({$plugin}); ?>";
|
||||
$s .= "<?php Context::loadJavascriptPlugin({$plugin}); ?>";
|
||||
return $s;
|
||||
// <load ...> or <unload ...> or <!--%import ...--> or <!--%unload ...-->
|
||||
case 'import':
|
||||
case 'load':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue