Bug I think
| From: | Brian E . Lozier | Date: | Fri, 22 Feb 2002 03:53:19 +0000 |
| Subject: | Bug I think | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2827@lists.php.net to get a copy of this message | ||
Under the fetch() method I see:
if ($this->_conf_obj === null) {
if (!class_exists('Config_File'))
require_once SMARTY_DIR.'Config_File.class.php';
$this->_conf_obj = new Config_File($this->config_dir);
$this->_conf_obj->read_hidden = false;
} else
$this->_conf_obj->set_path($this->config_dir);
There are two things that are/may be causing problems. First, the === I've never seen that
before... probably
supposed to be just ==.
Second, it requires/loads the config_file.class whether you need it or not... very annoying. I just
commented
out that whole block of code and everything seems to be working perfectly, but quite a bit faster
since it's
now not loading the config_file class which means in turn it's not loading the default PEAR
class...
Brian