W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2007

validator/httpd/cgi-bin check,1.545,1.546

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 25 Jul 2007 04:37:38 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IDYd0-0007TW-SW@lionel-hutz.w3.org>

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv28684

Modified Files:
	check 
Log Message:
workaround for people upgrading without updating their config files => we give a default for the language variable

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.545
retrieving revision 1.546
diff -u -d -r1.545 -r1.546
--- check	23 Jul 2007 06:01:39 -0000	1.545
+++ check	25 Jul 2007 04:37:36 -0000	1.546
@@ -268,6 +268,11 @@
 #### Generate Template for Result. ############################################
 ###############################################################################
 
+# in case there is no language set up on the server, we'll use english as default:
+if (!defined $CFG->{Languages}) {
+  $CFG->{Languages} = "en";
+}
+
 # first we determine the chosen language based on
 # 1) lang argument given as parameter (if this language is available)
 # 2) HTTP language negotiation between variants available and user-agent choices
Received on Wednesday, 25 July 2007 04:37:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:58 GMT