aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-11-05 21:36:35 +0000
committerz0rglub <z0rglub@piwigo.org>2004-11-05 21:36:35 +0000
commitfb53abe3bdb0746f52934b84e1627c6ff99c5339 (patch)
tree744de2591c0b7e171d48af0d9668fbb3db3b3355 /include/functions_user.inc.php
parentd2884e69ce33718e83f7da93adae0ba8a86d68cc (diff)
- DEFAULT_LANGUAGE constant moved to $conf['default_language']
- DEBUG constant divided into $conf['show_queries'] and $conf['show_gt'] (display generation time at the bottom of each page) git-svn-id: http://piwigo.org/svn/trunk@592 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_user.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 0d4a5f1a6..f78e10207 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -226,7 +226,7 @@ function init_userprefs($userdata)
if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $language . '/common.lang.php')) )
{
- $language = DEFAULT_LANGUAGE;
+ $language = $conf['default_language'];
}
include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/common.lang.php');
@@ -235,7 +235,7 @@ function init_userprefs($userdata)
{
if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $language. '/admin.lang.php')) )
{
- $language = DEFAULT_LANGUAGE;
+ $language = $conf['default_language'];
}
include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/admin.lang.php');
include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/faq.lang.php');