From e1f106801baae6017635191f858daf6cc426b0a6 Mon Sep 17 00:00:00 2001
From: fantu <fantu@ispconfig3>
Date: Sat, 15 Nov 2008 13:24:02 -0500
Subject: [PATCH] - Patch: if select language file to load not exist load the english language file - Etch docs update
---
interface/lib/classes/listform_actions.inc.php | 4 ++++
INSTALL_DEBIAN_4.0.txt | 6 ++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/INSTALL_DEBIAN_4.0.txt b/INSTALL_DEBIAN_4.0.txt
index ed994d3..3e9ec96 100644
--- a/INSTALL_DEBIAN_4.0.txt
+++ b/INSTALL_DEBIAN_4.0.txt
@@ -98,13 +98,11 @@
7.1) Install the latest released version
7.2) Install directly from SVN
-apt-get install php5-cli
-
7.1) Installation of beta 3 from tar.gz
cd /tmp
- wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.6-beta.tar.gz
- tar xvfz ISPConfig-3.0.0.6-beta.tar.gz
+ wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.7-beta.tar.gz
+ tar xvfz ISPConfig-3.0.0.7-beta.tar.gz
cd ispconfig3_install/install/
7.2) Installation from SVN
diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php
index 04bdebb..ea0f476 100644
--- a/interface/lib/classes/listform_actions.inc.php
+++ b/interface/lib/classes/listform_actions.inc.php
@@ -145,11 +145,15 @@
//* Set global Language File
$lng_file = ISPC_LIB_PATH.'/lang/'.$_SESSION['s']['language'].'.lng';
+ if(!file_exists($lng_file))
+ $lng_file = ISPC_LIB_PATH.'/lang/en.lng';
include($lng_file);
$app->tpl->setVar($wb);
//* Set local Language File
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_'.$app->listform->listDef['name'].'_list.lng';
+ if(!file_exists($lng_file))
+ $lng_file = 'lib/lang/en_'.$app->listform->listDef['name'].'_list.lng';
include($lng_file);
$app->tpl->setVar($wb);
$app->tpl->setVar('form_action', $app->listform->listDef['file']);
--
Gitblit v1.9.1