Use compiler_class for including the file.

This commit is contained in:
andrey
2001-05-18 13:32:13 +00:00
parent cee9b141a3
commit 366e4e2ac0
2 changed files with 2 additions and 2 deletions

View File

@@ -666,7 +666,7 @@ class Smarty
\*======================================================================*/
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;

View File

@@ -666,7 +666,7 @@ class Smarty
\*======================================================================*/
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;