aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index c12bdcda5..e1723b601 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1499,11 +1499,14 @@ function load_language($filename, $dirname = '', $language = '',
{
$languages[] = $language;
}
-
if ( !empty($user['language']) )
{
$languages[] = $user['language'];
}
+ if ( defined('PHPWG_INSTALLED') )
+ {
+ $languages[] = get_default_language();
+ }
$languages[] = PHPWG_DEFAULT_LANGUAGE;
$languages = array_unique($languages);