mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
only set $debug_tpl in constructor if empty
This commit is contained in:
@@ -210,9 +210,12 @@ class Smarty
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// look for debug template in the SMARTY_DIR
|
|
||||||
|
if(empty($this->debug_tpl)) {
|
||||||
|
// set path to debug template from SMARTY_DIR
|
||||||
$this->debug_tpl = SMARTY_DIR.'debug.tpl';
|
$this->debug_tpl = SMARTY_DIR.'debug.tpl';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*======================================================================*\
|
/*======================================================================*\
|
||||||
|
@@ -210,9 +210,12 @@ class Smarty
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// look for debug template in the SMARTY_DIR
|
|
||||||
|
if(empty($this->debug_tpl)) {
|
||||||
|
// set path to debug template from SMARTY_DIR
|
||||||
$this->debug_tpl = SMARTY_DIR.'debug.tpl';
|
$this->debug_tpl = SMARTY_DIR.'debug.tpl';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*======================================================================*\
|
/*======================================================================*\
|
||||||
|
Reference in New Issue
Block a user