aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-10-24 13:14:51 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-10-24 13:14:51 +0200
commit3c632fa8e4af4b9b666ddbab2de77d42716ce2b2 (patch)
treee11fd36c74aabdf1ca48bf50851a5aa0848b6d5d /phpBB/includes/functions_user.php
parent2adf3d7a3473fe8d01e850329bd935e97f09668d (diff)
downloadforums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.tar
forums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.tar.gz
forums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.tar.bz2
forums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.tar.xz
forums-3c632fa8e4af4b9b666ddbab2de77d42716ce2b2.zip
[ticket/11842] Use group_id 0 and correct avatar name after creating group
It seems like the function group_correct_avatar() was forgotten while adding the new avatar system. We now pass the group_id 0 to the upload avatar and let the function group_correct_avatar() fix the avatar filename after creating the group like it was done previously. PHPBB3-11842
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 30891c3fb5..475f59da1d 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -2314,7 +2314,7 @@ function group_create(&$group_id, $type, $name, $desc, $group_attributes, $allow
{
$group_id = $db->sql_nextid();
- if (isset($sql_ary['group_avatar_type']) && $sql_ary['group_avatar_type'] == AVATAR_UPLOAD)
+ if (isset($sql_ary['group_avatar_type']) && $sql_ary['group_avatar_type'] == 'avatar.driver.upload')
{
group_correct_avatar($group_id, $sql_ary['group_avatar']);
}