[med-svn] r559 - trunk/community/website/inc

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Thu Oct 4 18:44:13 UTC 2007


Author: hanska-guest
Date: 2007-10-04 18:44:12 +0000 (Thu, 04 Oct 2007)
New Revision: 559

Modified:
   trunk/community/website/inc/locale.inc.php
Log:
Trying to debug...


Modified: trunk/community/website/inc/locale.inc.php
===================================================================
--- trunk/community/website/inc/locale.inc.php	2007-10-04 18:43:05 UTC (rev 558)
+++ trunk/community/website/inc/locale.inc.php	2007-10-04 18:44:12 UTC (rev 559)
@@ -1,13 +1,15 @@
 <?php
 // _SERVER["HTTP_ACCEPT_LANGUAGE"]	it-it,it;q=0.8,en-gb;q=0.6,en-us;q=0.4,en;q=0.2
-//$languages = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
-$languages = "it-it,it;q=0.8,en-gb;q=0.6,en-us;q=0.4,en;q=0.2";
+//$languages = "it-it,it;q=0.8,en-gb;q=0.6,en-us;q=0.4,en;q=0.2";
+
+$languages = $_SERVER["HTTP_ACCEPT_LANGUAGE"];
 $lang_arr = explode(",", $languages);
 $lang_arr[0] .= ";q=1.0";
 
 $locales_dir = "/srv/alioth.debian.org/chroot/home/groups/debian-med/htdocs/locale/";
 
-$handle = @opendir($locales_dir) or die(_("Cannot open") . " $locales_dir.\n");
+$available = array();
+$handle = opendir($locales_dir) or die(_("Cannot open") . " $locales_dir.\n");
 while ($file = readdir($handle)) {
 	if ($file != "." && $file != ".." && is_dir($file)) {
 		$available[] = $file;




More information about the debian-med-commit mailing list