mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 08:33:03 +02:00
- 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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user