- From: Mercurial notifier <nobody@w3.org>
- Date: Mon, 14 Nov 2011 20:45:55 +0000
- To: markup-validator updates <www-validator-cvs@w3.org>
changeset: 3257:70128d3804c4
tag: tip
user: Ville Skyttä <ville.skytta@iki.fi>
date: Mon Nov 14 22:45:43 2011 +0200
files: httpd/cgi-bin/check
description:
Drop unused file_warnings template parameter.
diff -r 81a24724d6e0 -r 70128d3804c4 httpd/cgi-bin/check
--- a/httpd/cgi-bin/check Tue Nov 01 19:28:14 2011 +0200
+++ b/httpd/cgi-bin/check Mon Nov 14 22:45:43 2011 +0200
@@ -795,7 +795,6 @@
&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 @@
# 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};
Received on Monday, 14 November 2011 20:45:59 UTC