pecesama 17 anni fa
parent
commit
c7f3a0fb09
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      classes/lang.functions.php

+ 2 - 2
classes/lang.functions.php Vedi File

@@ -12,9 +12,9 @@
12 12
 ?>
13 13
 <?php
14 14
 function initLang($lang = "en") {
15
-	global $locale, $l10n;
15
+	global $l10n;
16 16
 
17
-	$input = new FileReader(dirname(__FILE__)."/../languages/". $locale ."/lang.mo");
17
+	$input = new FileReader(dirname(__FILE__).DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."languages".DIRECTORY_SEPARATOR.$lang.DIRECTORY_SEPARATOR."messages.mo");	
18 18
 	$l10n = new gettext_reader($input);
19 19
 }
20 20