mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
fix problem with testing SMARTY_DIR as empty
This commit is contained in:
@@ -215,7 +215,7 @@ class Smarty
|
|||||||
\*======================================================================*/
|
\*======================================================================*/
|
||||||
function Smarty()
|
function Smarty()
|
||||||
{
|
{
|
||||||
if(!empty(SMARTY_DIR)) {
|
if(SMARTY_DIR != '') {
|
||||||
$this->template_dir = SMARTY_DIR.$this->template_dir;
|
$this->template_dir = SMARTY_DIR.$this->template_dir;
|
||||||
$this->config_dir = SMARTY_DIR.$this->config_dir;
|
$this->config_dir = SMARTY_DIR.$this->config_dir;
|
||||||
$this->compile_dir = SMARTY_DIR.$this->compile_dir;
|
$this->compile_dir = SMARTY_DIR.$this->compile_dir;
|
||||||
|
@@ -215,7 +215,7 @@ class Smarty
|
|||||||
\*======================================================================*/
|
\*======================================================================*/
|
||||||
function Smarty()
|
function Smarty()
|
||||||
{
|
{
|
||||||
if(!empty(SMARTY_DIR)) {
|
if(SMARTY_DIR != '') {
|
||||||
$this->template_dir = SMARTY_DIR.$this->template_dir;
|
$this->template_dir = SMARTY_DIR.$this->template_dir;
|
||||||
$this->config_dir = SMARTY_DIR.$this->config_dir;
|
$this->config_dir = SMARTY_DIR.$this->config_dir;
|
||||||
$this->compile_dir = SMARTY_DIR.$this->compile_dir;
|
$this->compile_dir = SMARTY_DIR.$this->compile_dir;
|
||||||
|
Reference in New Issue
Block a user