Changeset 1758
- Timestamp:
- 04/03/08 18:36:27 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-33/php/lib/modifier.spam_protect.php
r1174 r1758 6 6 # $Id$ 7 7 8 function smarty_modifier_spam_protect($text ) {8 function smarty_modifier_spam_protect($text, $value) { 9 9 # defined in mt.php itself 10 return spam_protect($text); 10 if (isset($value) && $value) { 11 return spam_protect($text); 12 } else { 13 return $text; 14 } 11 15 } 12 16 ?>
