libraries/*: $cfg system changes.

This commit is contained in:
Alexander M. Turek
2002-04-24 18:38:28 +00:00
parent a80446dd11
commit 04b272c39c
9 changed files with 147 additions and 209 deletions

View File

@@ -164,8 +164,8 @@ if (!isset($lang)) {
* Do the work!
*/
// Lang forced
if (!empty($cfgLang)) {
$lang = $cfgLang;
if (!empty($cfg['Lang'])) {
$lang = $cfg['Lang'];
}
// If '$lang' is defined, ensure this is a valid translation
@@ -191,7 +191,7 @@ if (empty($lang) && !empty($HTTP_USER_AGENT)) {
// 3. Didn't catch any valid lang : we use the default settings
if (empty($lang)) {
$lang = $cfgDefaultLang;
$lang = $cfg['DefaultLang'];
}
// 4. Defines the associated filename and load the translation