aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/avatar/manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/avatar/manager.php')
-rw-r--r--phpBB/includes/avatar/manager.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/includes/avatar/manager.php b/phpBB/includes/avatar/manager.php
index 6471c4cc9c..7137243898 100644
--- a/phpBB/includes/avatar/manager.php
+++ b/phpBB/includes/avatar/manager.php
@@ -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]))