diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-12-30 17:20:50 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-12-30 17:20:50 +0000 |
commit | 11e76473aaf0120a96edb4d3a96800603bffcc48 (patch) | |
tree | 3b237d67fe83359ab17a99d151f52ad170500c74 /phpBB/includes/classes | |
parent | 96721d4bf141cd607ab47aa6f60ed33579475457 (diff) | |
download | forums-11e76473aaf0120a96edb4d3a96800603bffcc48.tar forums-11e76473aaf0120a96edb4d3a96800603bffcc48.tar.gz forums-11e76473aaf0120a96edb4d3a96800603bffcc48.tar.bz2 forums-11e76473aaf0120a96edb4d3a96800603bffcc48.tar.xz forums-11e76473aaf0120a96edb4d3a96800603bffcc48.zip |
fix some functions
git-svn-id: file:///svn/phpbb/trunk@9245 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/classes')
-rw-r--r-- | phpBB/includes/classes/user.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/phpBB/includes/classes/user.php b/phpBB/includes/classes/user.php index d86eb3d886..a2eb4fb813 100644 --- a/phpBB/includes/classes/user.php +++ b/phpBB/includes/classes/user.php @@ -126,9 +126,9 @@ class phpbb_user extends phpbb_session $this->lang_path = $lang_path; // Make sure last character is a directory separator - if (substr($this->lang_path, -1) != DIRECTORY_SEPARATOR) + if (substr($this->lang_path, -1) != '/') { - $this->lang_path .= DIRECTORY_SEPARATOR; + $this->lang_path .= '/'; } } @@ -324,11 +324,7 @@ class phpbb_user extends phpbb_session 'theme_storedb' => 1 ); - $sql = 'UPDATE ' . STYLES_THEME_TABLE . ' - SET ' . phpbb::$db->sql_build_array('UPDATE', $sql_ary) . ' - WHERE theme_id = ' . $this->theme['theme_id']; - phpbb::$db->sql_query($sql); - + phpbb::$db->sql_handle_data('UPDATE', STYLES_THEME_TABLE, $sql_ary, 'theme_id = ' . $this->theme['theme_id']); unset($sql_ary); } @@ -425,7 +421,7 @@ class phpbb_user extends phpbb_session // Call phpbb_user_session_handler() in case external application want to "bend" some variables or replace classes... // After calling it we continue script execution... - phpbb_user_session_handler(); + // phpbb_user_session_handler(); // If this function got called from the error handler we are finished here. if (defined('IN_ERROR_HANDLER')) |