[vhffs-dev] [1306] Added a "mail" filter to obfuscate addresses. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1306
Author: beuss
Date: 2008-11-01 13:08:09 +0100 (Sat, 01 Nov 2008)
Log Message:
-----------
Added a "mail" filter to obfuscate addresses.
Modified Paths:
--------------
branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Public.pm
Modified: branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Public.pm
===================================================================
--- branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Public.pm 2008-11-01 12:07:21 UTC (rev 1305)
+++ branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Public.pm 2008-11-01 12:08:09 UTC (rev 1306)
@@ -52,14 +52,16 @@
return $panel;
}
-
sub render {
my ($self, $file, $vars) = @_;
my $create_vars = {
INCLUDE_PATH => $self->{templatedir}.'/public/',
FILTERS => {
- i18n => \&gettext
+ i18n => \&gettext,
+ mail => sub {
+ return Vhffs::Functions::obfuscate_email($self->{vhffs}, $_[0]);
+ }
}
};