mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/avatars] Shorten avatar driver's class name
The addition of "core_" that was used until now would require additional avatar drivers (e.g. in extensions) to also include that in their class name which would be incorrect. PHPBB3-10018
This commit is contained in:
@@ -147,7 +147,7 @@ abstract class phpbb_avatar_driver implements phpbb_avatar_driver_interface
|
||||
**/
|
||||
public function is_enabled()
|
||||
{
|
||||
$driver = preg_replace('#^phpbb_avatar_driver_core_#', '', get_class($this));
|
||||
$driver = preg_replace('#^phpbb_avatar_driver_#', '', get_class($this));
|
||||
|
||||
return $this->config["allow_avatar_$driver"];
|
||||
}
|
||||
@@ -157,7 +157,7 @@ abstract class phpbb_avatar_driver implements phpbb_avatar_driver_interface
|
||||
**/
|
||||
public function get_template_name()
|
||||
{
|
||||
$driver = preg_replace('#^phpbb_avatar_driver_core_#', '', get_class($this));
|
||||
$driver = preg_replace('#^phpbb_avatar_driver_#', '', get_class($this));
|
||||
$template = "ucp_avatar_options_$driver.html";
|
||||
|
||||
return $template;
|
||||
|
@@ -20,7 +20,7 @@ if (!defined('IN_PHPBB'))
|
||||
* @package avatars
|
||||
*/
|
||||
// @todo: rename classes to phpbb_ext_foo_avatar_driver_foo and similar
|
||||
class phpbb_avatar_driver_core_gravatar extends phpbb_avatar_driver
|
||||
class phpbb_avatar_driver_gravatar extends phpbb_avatar_driver
|
||||
{
|
||||
/**
|
||||
* We'll need to create a different type of avatar for gravatar
|
@@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
|
||||
* Handles avatars selected from the board gallery
|
||||
* @package avatars
|
||||
*/
|
||||
class phpbb_avatar_driver_core_local extends phpbb_avatar_driver
|
||||
class phpbb_avatar_driver_local extends phpbb_avatar_driver
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
@@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
|
||||
* Handles avatars hosted remotely
|
||||
* @package avatars
|
||||
*/
|
||||
class phpbb_avatar_driver_core_remote extends phpbb_avatar_driver
|
||||
class phpbb_avatar_driver_remote extends phpbb_avatar_driver
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
@@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
|
||||
* Handles avatars uploaded to the board
|
||||
* @package avatars
|
||||
*/
|
||||
class phpbb_avatar_driver_core_upload extends phpbb_avatar_driver
|
||||
class phpbb_avatar_driver_upload extends phpbb_avatar_driver
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
Reference in New Issue
Block a user