mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
do not overwrite avatars from users if changing/uploading group avatar and changing/uploading avatar in ACP user panel (#1880)
git-svn-id: file:///svn/phpbb/trunk@5998 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -962,7 +962,7 @@ function avatar_delete($id)
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remote avatar linkage
|
||||
@@ -1039,7 +1039,7 @@ function avatar_upload($data, &$error)
|
||||
$file = $upload->remote_upload($data['uploadurl']);
|
||||
}
|
||||
|
||||
$file->clean_filename('real', $user->data['user_id'] . '_');
|
||||
$file->clean_filename('real', $data['user_id'] . '_');
|
||||
$file->move_file($config['avatar_path']);
|
||||
|
||||
if (sizeof($file->error))
|
||||
|
Reference in New Issue
Block a user