Bug 18736: (QA follow-up) Cosmetic changes
[koha.git] / C4 / TmplToken.pm
index a9cccd1..045269b 100644 (file)
@@ -1,13 +1,26 @@
 package C4::TmplToken;
 
-use strict;
-#use warnings; FIXME - Bug 2505
-use C4::TmplTokenType;
-require Exporter;
+# Copyright Tamil 2011
+#
+# This file is part of Koha.
+#
+# Koha is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# Koha is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
 
-###############################################################################
+use strict;
+use warnings;
+use C4::TmplTokenType;
 
 =head1 NAME
 
@@ -19,14 +32,7 @@ This is a class representing a token scanned from an HTML::Template .tmpl file.
 
 =cut
 
-###############################################################################
-
-$VERSION = 0.01;
 
-@ISA = qw(Exporter);
-@EXPORT_OK = qw();
-
-###############################################################################
 
 sub new {
     my $this = shift;
@@ -85,7 +91,7 @@ sub set_children {
 # FIXME: DIRECTIVE is not necessarily TMPL_VAR !!
 sub parameters_and_fields {
     my $this = shift;
-    return map { $_->type == C4::TmplTokenType::DIRECTIVE? $_:
+    return map { $_->type == C4::TmplTokenType::DIRECTIVE() ? $_:
                ($_->type == C4::TmplTokenType::TAG
                        && $_->string =~ /^<input\b/is)? $_: ()}
            @{$this->{'_kids'}};