Re: [SMARTY] Bug in plugin detection Smarty 2.3.0?

From: Date: Tue, 10 Dec 2002 23:11:20 +0000
Subject: Re: [SMARTY] Bug in plugin detection Smarty 2.3.0?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6724@lists.php.net to get a copy of this message
try CVS, I committed a fix. Monte On Tue, 2002-12-10 at 17:02, Ivo Jansch wrote: > Hi, > > I just created a plugin, but erroneously named the file > function.myplugin.inc instead of function.myplugin.php. When this is the > case, Smarty just stops executing somewhere, without giving an error. > > I've traced it back to the following lines: > > if ($found = ($plugin_file != false)) { > $message = "could not load plugin file > '$type.$name.php'\n"; > } > > (somewhere around line 1850 in Smarty.class.php) > > If $plugin_file is false (not found), then this if-statement is false as > well, and the message is not displayed. I think this is a bug. > > I'm using PHP 4.2.2. > > Greetings, > Ivo -- Monte Ohrt <monte@ispi.net>

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