1
0
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:
Cullen Walsh
2011-04-20 23:14:38 -07:00
committed by Cullen Walsh
parent 611a1d647a
commit 84099e5bc1
11 changed files with 130 additions and 81 deletions

View File

@@ -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]))