git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7716 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2010-09-28 03:52:32 +00:00
parent a6de064d49
commit f7e202d472

View file

@ -199,7 +199,6 @@
// replace parts not displaying results
$buff = preg_replace_callback('/\{\@([^\{\}]+)\}/i', array($this, '_compileVarToSilenceExecute'), $buff);
// prevent from calling directly before writing into file
$this->buff = '<?php if(!defined("__ZBXE__")) exit();?>'.$buff;
}
@ -349,8 +348,6 @@
**/
function _replaceCond($buff)
{
if($this->filename != '_style.list.html') return $buff;
while(false !== ($pos = strpos($buff, ' cond="')))
{
$pre = substr($buff,0,$pos);
@ -420,7 +417,7 @@
if(substr($target,0,2)=='./') $target = substr($target,2);
$pos = strrpos('/',$target);
$filename = substr($target,$pos);
$path = substr($target,0,$pos);
$path = $this->path.substr($target,0,$pos);
}
return sprintf(