mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
Use absolute paths when requiring/including Smart components.
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require('Smarty.addons.php');
|
require_once dirname(__FILE__) . '/Smarty.addons.php';
|
||||||
|
|
||||||
define("SMARTY_PHP_PASSTHRU",0);
|
define("SMARTY_PHP_PASSTHRU",0);
|
||||||
define("SMARTY_PHP_QUOTE",1);
|
define("SMARTY_PHP_QUOTE",1);
|
||||||
@@ -665,7 +665,7 @@ class Smarty
|
|||||||
\*======================================================================*/
|
\*======================================================================*/
|
||||||
function _compile_template($tpl_file, $template_source, &$template_compiled)
|
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;
|
$smarty_compiler = new $this->compiler_class;
|
||||||
|
|
||||||
|
@@ -40,7 +40,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require('Smarty.addons.php');
|
require_once dirname(__FILE__) . '/Smarty.addons.php';
|
||||||
|
|
||||||
define("SMARTY_PHP_PASSTHRU",0);
|
define("SMARTY_PHP_PASSTHRU",0);
|
||||||
define("SMARTY_PHP_QUOTE",1);
|
define("SMARTY_PHP_QUOTE",1);
|
||||||
@@ -665,7 +665,7 @@ class Smarty
|
|||||||
\*======================================================================*/
|
\*======================================================================*/
|
||||||
function _compile_template($tpl_file, $template_source, &$template_compiled)
|
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;
|
$smarty_compiler = new $this->compiler_class;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user