mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 03:09:55 +09:00
issue 2355 , fixed a bug that does not load widget setting page
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11183 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
973f6337b0
commit
912a1810dd
1 changed files with 8 additions and 9 deletions
|
|
@ -120,14 +120,14 @@ class TemplateHandler {
|
|||
$oCacheHandler = &CacheHandler::getInstance('template');
|
||||
|
||||
// get cached buff
|
||||
// if($oCacheHandler->isSupport()){
|
||||
// $cache_key = 'template:'.$this->file;
|
||||
// $buff = $oCacheHandler->get($cache_key, $latest_mtime);
|
||||
// } else {
|
||||
// if(is_readable($this->compiled_file) && filemtime($this->compiled_file)>$latest_mtime && filesize($this->compiled_file)) {
|
||||
// $buff = 'file://'.$this->compiled_file;
|
||||
// }
|
||||
// }
|
||||
if($oCacheHandler->isSupport()){
|
||||
$cache_key = 'template:'.$this->file;
|
||||
$buff = $oCacheHandler->get($cache_key, $latest_mtime);
|
||||
} else {
|
||||
if(is_readable($this->compiled_file) && filemtime($this->compiled_file)>$latest_mtime && filesize($this->compiled_file)) {
|
||||
$buff = 'file://'.$this->compiled_file;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$buff) {
|
||||
$buff = $this->parse();
|
||||
|
|
@ -324,7 +324,6 @@ class TemplateHandler {
|
|||
**/
|
||||
function _replacePath($match)
|
||||
{
|
||||
debugPrint($match);
|
||||
//return origin code when src value include variable.
|
||||
if(preg_match('/^[\'|"]\s*\.\s*\$/', $match[1]))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue