|
Revision 1758, 374 bytes
(checked in by bchoate, 20 months ago)
|
|
Fix for spam_protect attribute test. BugId:75191
|
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | # Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd. |
|---|
| 3 | # This program is distributed under the terms of the |
|---|
| 4 | # GNU General Public License, version 2. |
|---|
| 5 | # |
|---|
| 6 | # $Id$ |
|---|
| 7 | |
|---|
| 8 | function smarty_modifier_spam_protect($text, $value) { |
|---|
| 9 | # defined in mt.php itself |
|---|
| 10 | if (isset($value) && $value) { |
|---|
| 11 | return spam_protect($text); |
|---|
| 12 | } else { |
|---|
| 13 | return $text; |
|---|
| 14 | } |
|---|
| 15 | } |
|---|
| 16 | ?> |
|---|