diff options
Diffstat (limited to 'httpd/cgi-bin/check')
-rwxr-xr-x | httpd/cgi-bin/check | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index da33667..7f96afd 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -14,7 +14,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.500 2007-04-18 06:27:20 ot Exp $ +# $Id: check,v 1.501 2007-04-18 06:32:52 ot Exp $ # # Disable buffering on STDOUT! @@ -180,7 +180,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.500 $; + $VERSION = q$Revision: 1.501 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -1622,6 +1622,10 @@ sub report_errors ($) { push @{$Errors}, $Errors_bytype{$err_num}; } } + else { + # sort error by lines + @{$Errors} = sort {$a->{line} <=> $b->{line} } @{$Errors}; + } return $number_of_errors, $number_of_warnings, $number_of_info, $Errors; } |