diff --git a/admin/themes/admin/install.htm b/admin/themes/admin/install.htm
index 32f22d4..7c13c1f 100644
--- a/admin/themes/admin/install.htm
+++ b/admin/themes/admin/install.htm
@@ -29,7 +29,7 @@
@@ -59,7 +59,9 @@
diff --git a/classes/lang.functions.php b/classes/lang.functions.php
index c64c49a..b00ea7b 100644
--- a/classes/lang.functions.php
+++ b/classes/lang.functions.php
@@ -23,8 +23,10 @@ function initLang($lang = "en") {
}
function __($text) {
- global $l10n;
- return $l10n->translate($text);
+ global $l10n;
+ if($l10n)
+ return $l10n->translate($text);
+ return $text;
}
function T_ngettext($single, $plural, $number) {
diff --git a/classes/util.class.php b/classes/util.class.php
index 20bbc96..b25c3f9 100644
--- a/classes/util.class.php
+++ b/classes/util.class.php
@@ -402,11 +402,10 @@ class util {
$dir = (substr(PHP_OS, 0, 3) == 'WIN') ? $path."\\".$langs_dir : $path."/".$langs_dir;
$dir = str_replace("admin\\", "", $dir);
$dir = str_replace("admin/", "", $dir);
- $i=0;
+ $i=0;
$cls_lang_dir = @ dir($dir);
while (($directory = $cls_lang_dir->read()) !== false) {
if($directory != "." && $directory != "..") {
-
$dir2 = (substr(PHP_OS, 0, 3) == 'WIN') ? $path."\\".$langs_dir."\\".$directory : $path."/".$langs_dir."/".$directory;
$dir2 = str_replace("admin\\", "", $dir2);
$dir2 = str_replace("admin/", "", $dir2);
@@ -669,4 +668,4 @@ class util {
}
}
}
-?>
\ No newline at end of file
+?>
diff --git a/install.php b/install.php
index e421bca..b4714e1 100644
--- a/install.php
+++ b/install.php
@@ -41,7 +41,8 @@ $theme->set('title',isset($install->data['title'])?$install->data['title']:'');
$theme->set('description',isset($install->data['description'])?$install->data['description']:'');
$theme->set('url_installation',(isset($install->data['url_installation']) and $install->data['url_installation'])?$install->data['url_installation']:(isset($_SERVER['SCRIPT_URI'])?substr($_SERVER["SCRIPT_URI"], 0, -12):''));
-$theme->set('themes',util::getThemes());
+$theme->set('themes',util::getThemes());
+$theme->set('langs',util::getLangs());
for($c=1;$c<=10;$c++)$errores[$c] = $install->mostrarerror($c);
$theme->set('error',$errores);