mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Just in case the prefs are lost, class2.php will still define English as the default language.
This commit is contained in:
13
class2.php
13
class2.php
@@ -9,9 +9,9 @@
|
|||||||
* General purpose file
|
* General purpose file
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/class2.php,v $
|
* $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
* $Revision: 1.133 $
|
* $Revision: 1.134 $
|
||||||
* $Date: 2009-08-27 12:56:23 $
|
* $Date: 2009-08-27 22:33:18 $
|
||||||
* $Author: secretr $
|
* $Author: e107coders $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//
|
//
|
||||||
@@ -715,7 +715,14 @@ $language = $pref['sitelanguage'];
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
// We should have the language by now
|
// We should have the language by now
|
||||||
|
if($language)
|
||||||
|
{
|
||||||
define('e_LANGUAGE', $language);
|
define('e_LANGUAGE', $language);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
define('e_LANGUAGE', "English");
|
||||||
|
}
|
||||||
|
|
||||||
// Keep USERLAN for backward compatibility
|
// Keep USERLAN for backward compatibility
|
||||||
define('USERLAN', e_LANGUAGE);
|
define('USERLAN', e_LANGUAGE);
|
||||||
|
Reference in New Issue
Block a user