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

[feature/avatars] Get list of enabled drivers from avatar manager

This shouldn't be done in the avatar drivers. We need to force the
display all avatar drivers in the ACP or it won't be possible to enable
avatars after they have been disabled.

PHPBB3-10018
This commit is contained in:
Marc Alexander
2012-11-29 23:50:17 +01:00
parent 81a1a21185
commit f4ad60e2cf
8 changed files with 90 additions and 98 deletions

View File

@@ -127,16 +127,6 @@ abstract class phpbb_avatar_driver implements phpbb_avatar_driver_interface
return true;
}
/**
* @inheritdoc
*/
public function is_enabled()
{
$driver = preg_replace('#^phpbb_avatar_driver_#', '', get_class($this));
return $this->config["allow_avatar_$driver"];
}
/**
* @inheritdoc
*/