removed SMARTY_DIR setting in constructor

This commit is contained in:
mohrt
2001-12-04 19:35:38 +00:00
parent 21f5ae50b7
commit 63c1d1be8c
2 changed files with 2 additions and 26 deletions

View File

@@ -214,19 +214,7 @@ class Smarty
Purpose: Constructor
\*======================================================================*/
function Smarty()
{
if(SMARTY_DIR != '') {
$this->template_dir = SMARTY_DIR.$this->template_dir;
$this->config_dir = SMARTY_DIR.$this->config_dir;
$this->compile_dir = SMARTY_DIR.$this->compile_dir;
$this->cache_dir = SMARTY_DIR.$this->cache_dir;
$this->trusted_dir = SMARTY_DIR.$this->trusted_dir;
for ($x=0; $x < count($this->secure_dir); $x++) {
$this->secure_dir[$x] = SMARTY_DIR.$this->secure_dir[$x];
}
}
{
foreach ($this->global_assign as $key => $var_name) {
if (is_array($var_name)) {
foreach ($var_name as $var) {

View File

@@ -214,19 +214,7 @@ class Smarty
Purpose: Constructor
\*======================================================================*/
function Smarty()
{
if(SMARTY_DIR != '') {
$this->template_dir = SMARTY_DIR.$this->template_dir;
$this->config_dir = SMARTY_DIR.$this->config_dir;
$this->compile_dir = SMARTY_DIR.$this->compile_dir;
$this->cache_dir = SMARTY_DIR.$this->cache_dir;
$this->trusted_dir = SMARTY_DIR.$this->trusted_dir;
for ($x=0; $x < count($this->secure_dir); $x++) {
$this->secure_dir[$x] = SMARTY_DIR.$this->secure_dir[$x];
}
}
{
foreach ($this->global_assign as $key => $var_name) {
if (is_array($var_name)) {
foreach ($var_name as $var) {