Re: [SMARTY] Smarty 2.2.0 - bug with debug.tpl using Windows

From: Date: Mon, 05 Aug 2002 15:34:09 +0000
Subject: Re: [SMARTY] Smarty 2.2.0 - bug with debug.tpl using Windows
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5586@lists.php.net to get a copy of this message
I did the following change... function _parse_file_path($file_base_path, $file_path, &$resource_type, &$resource_name) { // split tpl_path by the first colon // MB_BEGIN if (preg_match("/^[a-zA-Z]:/", $file_path)) $file_path_parts = array($file_path); else $file_path_parts = explode(':', $file_path, 2); // MB_END I also set debug_tpl this way, $this->debug_tpl = SMARTY_DIR.'templates'.DIRECTORY_SEPARATOR.'debug.tpl'; And moved template where it belongs... Mirko At 11.13 05/08/02 +0200, you wrote: >Hi, > >I don't know if this was already mentioned. I have just downloaded >the latest Smarty release and run the example page when I >encountered the bug. > >I was also very confused that there was no smarty error triggered - it >simply tried to call an undefined function from the $_plugins array; >neither _parse_file_path() nor _fetch_template_info() try to load a >resource plugin nor check whether a resource plugin was loaded.

« previous php.smarty.general (#5586) next »