Skip to content

Commit e1f1068

Browse files
author
fantu
committed
- Patch: if select language file to load not exist load the english language file
- Etch docs update
1 parent 8d390a4 commit e1f1068

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

INSTALL_DEBIAN_4.0.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,11 @@ There are two possile scenarios, but not both:
9898
7.1) Install the latest released version
9999
7.2) Install directly from SVN
100100

101-
apt-get install php5-cli
102-
103101
7.1) Installation of beta 3 from tar.gz
104102

105103
cd /tmp
106-
wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.6-beta.tar.gz
107-
tar xvfz ISPConfig-3.0.0.6-beta.tar.gz
104+
wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.7-beta.tar.gz
105+
tar xvfz ISPConfig-3.0.0.7-beta.tar.gz
108106
cd ispconfig3_install/install/
109107

110108
7.2) Installation from SVN

interface/lib/classes/listform_actions.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,15 @@ private function onShow()
145145

146146
//* Set global Language File
147147
$lng_file = ISPC_LIB_PATH.'/lang/'.$_SESSION['s']['language'].'.lng';
148+
if(!file_exists($lng_file))
149+
$lng_file = ISPC_LIB_PATH.'/lang/en.lng';
148150
include($lng_file);
149151
$app->tpl->setVar($wb);
150152

151153
//* Set local Language File
152154
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_'.$app->listform->listDef['name'].'_list.lng';
155+
if(!file_exists($lng_file))
156+
$lng_file = 'lib/lang/en_'.$app->listform->listDef['name'].'_list.lng';
153157
include($lng_file);
154158
$app->tpl->setVar($wb);
155159
$app->tpl->setVar('form_action', $app->listform->listDef['file']);

0 commit comments

Comments
 (0)