1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

back to previous code

the check is done on existing files
beside it' s doubled checked by include_lan
This commit is contained in:
marj
2009-08-28 15:21:23 +00:00
parent 16d19f3298
commit 426fad06a0

View File

@@ -9,9 +9,9 @@
* General purpose file
*
* $Source: /cvs_backup/e107_0.8/class2.php,v $
* $Revision: 1.134 $
* $Date: 2009-08-27 22:33:18 $
* $Author: e107coders $
* $Revision: 1.135 $
* $Date: 2009-08-28 15:21:23 $
* $Author: marj_nl_fr $
*
*/
//
@@ -671,7 +671,7 @@ define('e_LANLIST', $tmplan);
$language = $pref['sitelanguage'];
// Get user language choice
/// Force no multilingual sites to keep there preset languages? if (varset($pref['multilanguage']))
//TODO Force no multilingual sites to keep there preset languages? if (varset($pref['multilanguage']))
//{
if ($pref['user_tracking'] == 'session')
{
@@ -715,14 +715,7 @@ $language = $pref['sitelanguage'];
//}
// We should have the language by now
if($language)
{
define('e_LANGUAGE', $language);
}
else
{
define('e_LANGUAGE', "English");
}
// Keep USERLAN for backward compatibility
define('USERLAN', e_LANGUAGE);