From 11e76473aaf0120a96edb4d3a96800603bffcc48 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 30 Dec 2008 17:20:50 +0000 Subject: fix some functions git-svn-id: file:///svn/phpbb/trunk@9245 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/classes/user.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'phpBB/includes/classes/user.php') 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')) -- cgit v1.2.1