mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/avatars] Miscellaneous fixes
PHPBB3-10018
This commit is contained in:
@@ -521,7 +521,7 @@ class ucp_groups
|
||||
{
|
||||
// Handle avatar
|
||||
$driver = str_replace('_', '.', request_var('avatar_driver', ''));
|
||||
$config_name = preg_replace('#^avatar.driver.#', '', $driver);
|
||||
$config_name = preg_replace('#^avatar\.driver.#', '', $driver);
|
||||
$avatar_delete = $request->variable('avatar_delete', '');
|
||||
if (in_array($driver, $avatar_drivers) && $config["allow_avatar_$config_name"] && empty($avatar_delete))
|
||||
{
|
||||
|
@@ -564,7 +564,7 @@ class ucp_profile
|
||||
if (check_form_key('ucp_avatar'))
|
||||
{
|
||||
$driver = str_replace('_', '.', request_var('avatar_driver', ''));
|
||||
$config_name = preg_replace('#^avatar.driver.#', '', $driver);
|
||||
$config_name = preg_replace('#^avatar\.driver.#', '', $driver);
|
||||
$avatar_delete = $request->variable('avatar_delete', '');
|
||||
if (in_array($driver, $avatar_drivers) && $config["allow_avatar_$config_name"] && empty($avatar_delete))
|
||||
{
|
||||
|
Reference in New Issue
Block a user