From e1f106801baae6017635191f858daf6cc426b0a6 Mon Sep 17 00:00:00 2001 From: fantu Date: Sat, 15 Nov 2008 18:24:02 +0000 Subject: [PATCH] - Patch: if select language file to load not exist load the english language file - Etch docs update --- INSTALL_DEBIAN_4.0.txt | 6 ++---- interface/lib/classes/listform_actions.inc.php | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/INSTALL_DEBIAN_4.0.txt b/INSTALL_DEBIAN_4.0.txt index ed994d308c..3e9ec963d3 100644 --- a/INSTALL_DEBIAN_4.0.txt +++ b/INSTALL_DEBIAN_4.0.txt @@ -98,13 +98,11 @@ There are two possile scenarios, but not both: 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 04bdebba63..ea0f47692c 100644 --- a/interface/lib/classes/listform_actions.inc.php +++ b/interface/lib/classes/listform_actions.inc.php @@ -145,11 +145,15 @@ class listform_actions { //* 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']); -- GitLab