Re: Bug I think
| From: | Andrei Zmievski | Date: | Fri, 22 Feb 2002 03:52:16 +0000 |
| Subject: | Re: Bug I think | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2828@lists.php.net to get a copy of this message | ||
At 07:53 PM 2/21/02 -0800, Brian E. Lozier wrote:
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 ==.
No, it's correct.
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...Eh, that's already been fixed for Smarty 2.0. -Andrei