Commit e1f10680 authored by fantu's avatar fantu

- Patch: if select language file to load not exist load the english language file

- Etch docs update
parent 8d390a43
......@@ -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
......
......@@ -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']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment