]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 130254 - Template params don't have to exist, since they may be
authorbbaetz%student.usyd.edu.au <>
Tue, 12 Mar 2002 21:33:55 +0000 (21:33 +0000)
committerbbaetz%student.usyd.edu.au <>
Tue, 12 Mar 2002 21:33:55 +0000 (21:33 +0000)
subject to interpolation. Ignore names with $ in them as a workaround
r=myk x 2

t/Support/Templates.pm

index c4fc3160a8f09cb314554bcf26f4ae3b6d4721c4..91946507d66f6f990be135e221c7ad7f499877cd 100644 (file)
@@ -39,6 +39,9 @@ foreach my $file (@files) {
     foreach my $line (@lines) {
         if ($line =~ m/template->process\(\"(.+?)\", .+?\)/) {
             $template = $1;
+            # Ignore templates with $ in the name, since they're
+            # probably vars, not real files
+            next if $template =~ m/\$/;
             push (@testitems, $template) unless $t{$template};
             $t{$template} = 1;
         }