mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-22 16:22:58 +02:00
[feature/avatars] Support proper avatar deletion, stub ACP
Fixing avatar deletion in the UCP and ACP, and stubbing the ACP configuration page. I'll admit I kind of got caught carried away, so this really should be a couple separate commits. PHPBB3-10018
This commit is contained in:
committed by
Cullen Walsh
parent
611a1d647a
commit
84099e5bc1
@@ -47,6 +47,20 @@ class phpbb_avatar_manager
|
||||
$this->load_valid_drivers();
|
||||
}
|
||||
|
||||
// Legacy stuff...
|
||||
switch ($avatar_type)
|
||||
{
|
||||
case AVATAR_LOCAL:
|
||||
$avatar_type = 'local';
|
||||
break;
|
||||
case AVATAR_UPLOAD:
|
||||
$avatar_type = 'upload';
|
||||
break;
|
||||
case AVATAR_REMOTE:
|
||||
$avatar_type = 'remote';
|
||||
break;
|
||||
}
|
||||
|
||||
if (isset(self::$valid_drivers[$avatar_type]))
|
||||
{
|
||||
if ($new || !is_object(self::$valid_drivers[$avatar_type]))
|
||||
|
Reference in New Issue
Block a user