Commit 9725a275 authored by fantu's avatar fantu
Browse files

if lang file for current language not exist load master language file

parent baac49e1
......@@ -145,7 +145,9 @@ class app {
//* loading global and module Wordbook
// TODO: this need to be made clearer somehow - pedro
$lng_file = ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/'.$_SESSION['s']['language'].'.lng';
if(!file_exists($lng_file)) $lng_file = ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/en.lng';
$this->_wb = $wb;
$this->_language_inc = 1;
Supports Markdown
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