From: bbaetz%student.usyd.edu.au <> Date: Tue, 12 Mar 2002 21:33:55 +0000 (+0000) Subject: Bug 130254 - Template params don't have to exist, since they may be X-Git-Tag: bugzilla-2.16rc1~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38551035718d027fb8794f56a15fe1bf5a63676b;p=thirdparty%2Fbugzilla.git Bug 130254 - Template params don't have to exist, since they may be subject to interpolation. Ignore names with $ in them as a workaround r=myk x 2 --- diff --git a/t/Support/Templates.pm b/t/Support/Templates.pm index c4fc3160a8..91946507d6 100644 --- a/t/Support/Templates.pm +++ b/t/Support/Templates.pm @@ -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; }