summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Skytt? <ville.skytta@iki.fi>2011-11-14 22:45:43 +0200
committerVille Skytt? <ville.skytta@iki.fi>2011-11-14 22:45:43 +0200
commit6377e3be3f55e279b1296c483790f429ed0b1318 (patch)
tree2adce5b83f443cf981a30b287efae70e80bd3920
parentee5e5c5d1b005efa7c3edb983389cb49b254eb5a (diff)
downloadmarkup-validator-6377e3be3f55e279b1296c483790f429ed0b1318.zip
markup-validator-6377e3be3f55e279b1296c483790f429ed0b1318.tar.gz
markup-validator-6377e3be3f55e279b1296c483790f429ed0b1318.tar.bz2
Drop unused file_warnings template parameter.
-rwxr-xr-xhttpd/cgi-bin/check6
1 files changed, 1 insertions, 5 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index e28da5d..592d9ba 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -795,7 +795,6 @@ else {
&prep_template($File, $template);
&fin_template($File, $template);
-$template->param(file_warnings => $File->{Warnings});
$template->param(tidy_output => $File->{Tidy});
$template->param(file_source => &source($File))
if ($template->param('opt_show_source') or
@@ -807,10 +806,7 @@ if ($File->{Opt}->{Output} eq 'json') {
# No JSON escaping in HTML::Template (and "JS" is not the right thing here)
my $json = JSON->new();
$json->allow_nonref(TRUE);
- for my $msgs ($template->param("file_errors"),
- $template->param("file_warnings"))
- {
- next unless $msgs;
+ if (my $msgs = $template->param("file_errors")) {
for my $msg (@$msgs) {
for my $key (qw(msg expl)) {
$msg->{$key} = $json->encode($msg->{$key}) if $msg->{$key};