mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Use compiler_class for including the file.
This commit is contained in:
@@ -666,7 +666,7 @@ class Smarty
|
|||||||
\*======================================================================*/
|
\*======================================================================*/
|
||||||
function _compile_template($tpl_file, $template_source, &$template_compiled)
|
function _compile_template($tpl_file, $template_source, &$template_compiled)
|
||||||
{
|
{
|
||||||
include_once dirname(__FILE__) . '/Smarty_Compiler.class.php';
|
include_once dirname(__FILE__) . '/' . $this->compiler_class . '.class.php';
|
||||||
|
|
||||||
$smarty_compiler = new $this->compiler_class;
|
$smarty_compiler = new $this->compiler_class;
|
||||||
|
|
||||||
|
@@ -666,7 +666,7 @@ class Smarty
|
|||||||
\*======================================================================*/
|
\*======================================================================*/
|
||||||
function _compile_template($tpl_file, $template_source, &$template_compiled)
|
function _compile_template($tpl_file, $template_source, &$template_compiled)
|
||||||
{
|
{
|
||||||
include_once dirname(__FILE__) . '/Smarty_Compiler.class.php';
|
include_once dirname(__FILE__) . '/' . $this->compiler_class . '.class.php';
|
||||||
|
|
||||||
$smarty_compiler = new $this->compiler_class;
|
$smarty_compiler = new $this->compiler_class;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user