fix problem with testing SMARTY_DIR as empty

This commit is contained in:
mohrt
2001-12-03 22:28:24 +00:00
parent d99a9b7625
commit 793015a8ed
2 changed files with 2 additions and 2 deletions

View File

@@ -215,7 +215,7 @@ class Smarty
\*======================================================================*/
function Smarty()
{
if(!empty(SMARTY_DIR)) {
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;

View File

@@ -215,7 +215,7 @@ class Smarty
\*======================================================================*/
function Smarty()
{
if(!empty(SMARTY_DIR)) {
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;