diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/constants.php | 3 | ||||
-rw-r--r-- | include/functions_user.inc.php | 4 | ||||
-rw-r--r-- | include/user.inc.php | 3 |
3 files changed, 6 insertions, 4 deletions
diff --git a/include/constants.php b/include/constants.php index fb647d8b3..3ac5816f4 100644 --- a/include/constants.php +++ b/include/constants.php @@ -25,6 +25,9 @@ // | USA. | // +-----------------------------------------------------------------------+ +// Default Language +define('DEFAULT_LANGUAGE', 'en_UK.iso-8859-1'); + // Debug Level define('DEBUG', 1); // Debugging on //define('DEBUG', 0); // Debugging off diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 0e1f8a628..5af68ad4e 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -218,7 +218,7 @@ function init_userprefs($userdata) if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $language . '/common.lang.php')) ) { - $language = 'en_EN'; + $language = DEFAULT_LANGUAGE; } include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/common.lang.php'); @@ -227,7 +227,7 @@ function init_userprefs($userdata) { if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $language. '/admin.lang.php')) ) { - $language = 'en_EN'; + $language = DEFAULT_LANGUAGE; } include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/admin.lang.php'); } diff --git a/include/user.inc.php b/include/user.inc.php index 65222f3f6..05b91d738 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -35,8 +35,7 @@ $infos = array( 'id', 'username', 'mail_address', 'nb_image_line', 'maxheight', 'expand', 'show_nb_comments', 'recent_period', 'template', 'forbidden_categories' ); -$query_user = 'SELECT '.implode( ',', $infos ); -$query_user.= ' FROM '.USERS_TABLE; +$query_user = 'SELECT * FROM '.USERS_TABLE; $query_done = false; $user['is_the_guest'] = false; |