- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 02 Mar 2007 07:08:18 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv4461/httpd/cgi-bin
Modified Files:
check
Log Message:
Should not hardcode tidy conf path, make it configurable in main conf file
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.471
retrieving revision 1.472
diff -u -d -r1.471 -r1.472
--- check 1 Mar 2007 02:52:56 -0000 1.471
+++ check 2 Mar 2007 07:08:16 -0000 1.472
@@ -694,7 +694,7 @@
eval {
local $SIG{__DIE__};
require HTML::Tidy;
- my $tidy = HTML::Tidy->new({config_file => "/Users/ot/Sites/cvs/public/validator/HEAD/htdocs/config/tidy.conf"});
+ my $tidy = HTML::Tidy->new({config_file => $CFG->{Paths}->{TidyConf}});
$File->{'Tidy'} = $tidy->clean(join"\n",@{$File->{Content}});
$File->{'Tidy_OK'} = TRUE;
@@ -702,9 +702,9 @@
if ($@) {
$File->{'Tidy_OK'} = FALSE;
}
-
}
+
my $template;
if ($File->{Opt}->{Output} eq 'xml') {
Received on Friday, 2 March 2007 07:08:27 UTC