From 366e4e2ac03486a1c97caf76dd73e4b3babfbadc Mon Sep 17 00:00:00 2001 From: andrey Date: Fri, 18 May 2001 13:32:13 +0000 Subject: [PATCH] Use compiler_class for including the file. --- Smarty.class.php | 2 +- libs/Smarty.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index 41cb62e3..13b01aba 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -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; diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 41cb62e3..13b01aba 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -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;