Changeset 1758

Show
Ignore:
Timestamp:
04/03/08 18:36:27 (23 months ago)
Author:
bchoate
Message:

Fix for spam_protect attribute test. BugId:75191

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-33/php/lib/modifier.spam_protect.php

    r1174 r1758  
    66# $Id$ 
    77 
    8 function smarty_modifier_spam_protect($text) { 
     8function smarty_modifier_spam_protect($text, $value) { 
    99    # 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    } 
    1115} 
    1216?>