Use absolute paths when requiring/including Smart components.

This commit is contained in:
andrey
2001-05-09 13:42:40 +00:00
parent 4047e49ad5
commit bb2a2bd7de
2 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@
*
*/
require('Smarty.addons.php');
require_once dirname(__FILE__) . '/Smarty.addons.php';
define("SMARTY_PHP_PASSTHRU",0);
define("SMARTY_PHP_QUOTE",1);
@@ -665,7 +665,7 @@ class Smarty
\*======================================================================*/
function _compile_template($tpl_file, $template_source, &$template_compiled)
{
include_once "Smarty_Compiler.class.php";
include_once dirname(__FILE__) . '/Smarty_Compiler.class.php';
$smarty_compiler = new $this->compiler_class;

View File

@@ -40,7 +40,7 @@
*
*/
require('Smarty.addons.php');
require_once dirname(__FILE__) . '/Smarty.addons.php';
define("SMARTY_PHP_PASSTHRU",0);
define("SMARTY_PHP_QUOTE",1);
@@ -665,7 +665,7 @@ class Smarty
\*======================================================================*/
function _compile_template($tpl_file, $template_source, &$template_compiled)
{
include_once "Smarty_Compiler.class.php";
include_once dirname(__FILE__) . '/Smarty_Compiler.class.php';
$smarty_compiler = new $this->compiler_class;