- 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
This commit is contained in:
z0rglub
2004-11-05 21:36:35 +00:00
parent d2884e69ce
commit fb53abe3bd
5 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -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');