mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
*** empty log message ***
This commit is contained in:
@@ -158,7 +158,7 @@ class Smarty
|
||||
// compile files
|
||||
$this->_compile($this->template_dir);
|
||||
//assemble compile directory path to file
|
||||
$_compile_file = preg_replace("/([\.\/]*[^\/]+)(.*)/","\\1".preg_quote($this->compile_dir_ext,"/")."\\2",$tpl_file);
|
||||
$_compile_file = preg_replace("/([\.\/]*[^\/]+)(.*)/","\\1".preg_quote($this->compile_dir_ext,"/")."\\2.php", $tpl_file);
|
||||
|
||||
extract($this->_tpl_vars);
|
||||
include($_compile_file);
|
||||
@@ -343,7 +343,7 @@ class Smarty
|
||||
$strip_tags_modified[$i], $compiled_contents, 1);
|
||||
}
|
||||
|
||||
if(!$this->_write_file($compilepath, $compiled_contents))
|
||||
if(!$this->_write_file($compilepath . ".php", $compiled_contents))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
@@ -516,11 +516,11 @@ class Smarty
|
||||
"{\n" .
|
||||
" extract(\$def_vars);\n" .
|
||||
" extract(\$include_vars);\n" .
|
||||
" include \"\$file_name\";\n" .
|
||||
" include \"\$file_name.php\";\n" .
|
||||
"}\n" .
|
||||
"$include_func_name(\"$include_file_name\", get_defined_vars(), array(".implode(',', (array)$arg_list)."));\n?>\n";
|
||||
} else
|
||||
return '<?php include "'.$this->template_dir.$this->compile_dir_ext.'/'.$attrs['file'].'"; ?>';
|
||||
return '<?php include "'.$this->template_dir.$this->compile_dir_ext.'/'.$attrs['file'].'.php"; ?>';
|
||||
}
|
||||
|
||||
function _compile_section_start($tag_args)
|
||||
|
@@ -158,7 +158,7 @@ class Smarty
|
||||
// compile files
|
||||
$this->_compile($this->template_dir);
|
||||
//assemble compile directory path to file
|
||||
$_compile_file = preg_replace("/([\.\/]*[^\/]+)(.*)/","\\1".preg_quote($this->compile_dir_ext,"/")."\\2",$tpl_file);
|
||||
$_compile_file = preg_replace("/([\.\/]*[^\/]+)(.*)/","\\1".preg_quote($this->compile_dir_ext,"/")."\\2.php", $tpl_file);
|
||||
|
||||
extract($this->_tpl_vars);
|
||||
include($_compile_file);
|
||||
@@ -343,7 +343,7 @@ class Smarty
|
||||
$strip_tags_modified[$i], $compiled_contents, 1);
|
||||
}
|
||||
|
||||
if(!$this->_write_file($compilepath, $compiled_contents))
|
||||
if(!$this->_write_file($compilepath . ".php", $compiled_contents))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
@@ -516,11 +516,11 @@ class Smarty
|
||||
"{\n" .
|
||||
" extract(\$def_vars);\n" .
|
||||
" extract(\$include_vars);\n" .
|
||||
" include \"\$file_name\";\n" .
|
||||
" include \"\$file_name.php\";\n" .
|
||||
"}\n" .
|
||||
"$include_func_name(\"$include_file_name\", get_defined_vars(), array(".implode(',', (array)$arg_list)."));\n?>\n";
|
||||
} else
|
||||
return '<?php include "'.$this->template_dir.$this->compile_dir_ext.'/'.$attrs['file'].'"; ?>';
|
||||
return '<?php include "'.$this->template_dir.$this->compile_dir_ext.'/'.$attrs['file'].'.php"; ?>';
|
||||
}
|
||||
|
||||
function _compile_section_start($tag_args)
|
||||
|
Reference in New Issue
Block a user