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