We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baac49e commit 9725a27Copy full SHA for 9725a27
interface/lib/app.inc.php
@@ -145,7 +145,9 @@ public function lng($text)
145
//* loading global and module Wordbook
146
// TODO: this need to be made clearer somehow - pedro
147
@include_once(ISPC_ROOT_PATH.'/lib/lang/'.$_SESSION['s']['language'].'.lng');
148
- @include_once(ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/'.$_SESSION['s']['language'].'.lng');
+ $lng_file = ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/'.$_SESSION['s']['language'].'.lng';
149
+ if(!file_exists($lng_file)) $lng_file = ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/en.lng';
150
+ include_once($lng_file);
151
$this->_wb = $wb;
152
$this->_language_inc = 1;
153
}
0 commit comments