- fixed missing quotes in include_php.php

This commit is contained in:
Uwe.Tews
2009-10-28 15:37:50 +00:00
parent fa9290135f
commit 100d72ffbe
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
10/27/2009
- fixed missing quotes in include_php.php
10/27/2009 10/27/2009
- fixed typo in method.register_resource - fixed typo in method.register_resource
- pass {} through as literal - pass {} through as literal

View File

@@ -61,7 +61,7 @@ class Smarty_Internal_Compile_Include_Php extends Smarty_Internal_CompileBase {
$_output .= 'ob_start(); include' . $_once . ' (\'' . $_file . '\'); $_smarty_tpl->assign(' . $_assign . ',ob_get_contents()); ob_end_clean();?>'; $_output .= 'ob_start(); include' . $_once . ' (\'' . $_file . '\'); $_smarty_tpl->assign(' . $_assign . ',ob_get_contents()); ob_end_clean();?>';
} else { } else {
$this->compiler->has_output = true; $this->compiler->has_output = true;
$_output .= 'include' . $once . ' (' . $_file . '); ?>'; $_output .= 'include' . $_once . ' (\'' . $_file . '\'); ?>';
} }
return $_output; return $_output;
} }