koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/misc/translator TmplTokenizer.pm,1.9,1.10


From: Ambrose Li
Subject: [Koha-cvs] CVS: koha/misc/translator TmplTokenizer.pm,1.9,1.10
Date: Tue, 17 Feb 2004 22:56:23 -0800

Update of /cvsroot/koha/koha/misc/translator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1378

Modified Files:
        TmplTokenizer.pm 
Log Message:
Warn against Apache #include directive


Index: TmplTokenizer.pm
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/TmplTokenizer.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** TmplTokenizer.pm    17 Feb 2004 07:45:17 -0000      1.9
--- TmplTokenizer.pm    18 Feb 2004 06:56:19 -0000      1.10
***************
*** 347,350 ****
--- 347,353 ----
            $kind = TmplTokenType::DECL;
            $kind = TmplTokenType::COMMENT if $it =~ /^<!--(?:(?!-->).)*-->/;
+           if ($kind == TmplTokenType::COMMENT && $it =~ /^<!--\s*#include/s) {
+               warn_normal "Apache #include directive found instead of 
HTML::Template directive <TMPL_INCLUDE>", $this->line_number_start;
+           }
        } elsif ($it =~ /^<\?/) {
            $kind = TmplTokenType::PI;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]