[med-svn] r612 - trunk/community/website

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Fri Oct 5 16:32:15 UTC 2007


Author: hanska-guest
Date: 2007-10-05 16:32:15 +0000 (Fri, 05 Oct 2007)
New Revision: 612

Modified:
   trunk/community/website/locales.php
Log:
Trying to hardcode the path


Modified: trunk/community/website/locales.php
===================================================================
--- trunk/community/website/locales.php	2007-10-05 16:16:41 UTC (rev 611)
+++ trunk/community/website/locales.php	2007-10-05 16:32:15 UTC (rev 612)
@@ -50,14 +50,14 @@
 				<?php
 					require_once("inc/po-stats.inc.php");
 					
-					$handle = opendir("locale/");
+					$handle = opendir($locales_dir);
 					$avail_locales = array();
 					while ($file = readdir($handle)) {
 						if ($file != "." && $file != ".." && $file != ".svn") {
 							// we get this $locales_dir from locale.inc.php
-							//if (is_dir($locales_dir.$file)) {
-							if (is_dir("locale/$file")) {
-								$po = "locale/$file/LC_MESSAGES/messages.po";
+							if (is_dir($locales_dir.$file)) {
+							//if (is_dir("locale/$file")) {
+								$po = "$locales_dir/$file/LC_MESSAGES/messages.po";
 								$avail_locales[$file] = makePOStats($po);
 							}
 						}




More information about the debian-med-commit mailing list