1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[feature/avatars] Add more consistency to codebase

PHPBB3-10018
This commit is contained in:
Marc Alexander
2012-12-11 21:02:37 +01:00
parent 1aae72961a
commit 2f47c99432
7 changed files with 31 additions and 21 deletions

View File

@@ -1765,7 +1765,7 @@ class acp_users
$sql = 'UPDATE ' . USERS_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $result) . '
WHERE user_id = ' . $user_id;
WHERE user_id = ' . (int) $user_id;
$db->sql_query($sql);
trigger_error($user->lang['USER_AVATAR_UPDATED'] . adm_back_link($this->u_action . '&u=' . $user_id));
@@ -1810,7 +1810,7 @@ class acp_users
$avatars_enabled = true;
$config_name = $phpbb_avatar_manager->get_driver_config_name($driver);
$template->set_filenames(array(
'avatar' => "acp_avatar_options_$config_name.html",
'avatar' => "acp_avatar_options_{$config_name}.html",
));
if ($driver->prepare_form($template, $avatar_data, $error))