Re: [SMARTY] Don't use bad words!

From: Date: Thu, 10 Apr 2003 13:47:39 +0000
Subject: Re: [SMARTY] Don't use bad words!
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9210@lists.php.net to get a copy of this message
Messju Mohr wrote: Hi, > nice. although censorship may not always be considered nice, of > course. i hope people use such a function responsibly. yeah, but sometimes it is needed :( > nontheless: i have two little tips for enhancement. > > 1. > > i get a warning issued: fixed. thanks. > 2. > > if you call the modifier multiple times in a template the search array > is created from scratch for every call to the modifier. you may > increase performance vastly (especially for long word-lists), by > making $badwords a static variable and only initialize it on the first > call of the modifier. changed. thanks. Get new version and new bad words here: http://dev.feth.com/PHP/Smarty/ thanks & greets, Joscha

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