databind
vitalif 2008-10-18 13:56:52 +00:00 committed by Vitaliy Filippov
parent eb62fde084
commit b90a8f8201
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ sub trim
# $str = htmlspecialchars ($str)
sub htmlspecialchars
{
$_ = shift;
local $_ = shift;
s/&/'/gso;
s/</&lt;/gso;
s/>/&gt;/gso;

View File

@ -153,7 +153,7 @@ sub datapop
sub parse
{
my $self = shift;
my $handle = shift;
my ($handle) = @_;
die("[Template] couldn't load template file for handle $handle")
unless $self->loadfile($handle);
$self->compile($handle);