1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/avatars] Fix coding guidelines infractions

This commit is contained in:
Marc Alexander
2012-11-12 16:27:45 +01:00
parent 4c4b82416b
commit 940d768592
3 changed files with 12 additions and 5 deletions

View File

@@ -72,11 +72,16 @@ class phpbb_avatar_manager
$r = new ReflectionClass($avatar_type);
if ($r->isSubClassOf('phpbb_avatar_driver')) {
if ($r->isSubClassOf('phpbb_avatar_driver'))
{
$driver = new $avatar_type($this->config, $this->request, $this->phpbb_root_path, $this->phpEx, $this->cache);
} else if ($r->implementsInterface('phpbb_avatar_driver')) {
}
else if ($r->implementsInterface('phpbb_avatar_driver'))
{
$driver = new $avatar_type();
} else {
}
else
{
$message = "Invalid avatar driver class name '%s' provided. It must implement phpbb_avatar_driver_interface.";
trigger_error(sprintf($message, $avatar_type));
}