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

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 UTC