mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-20 16:41:26 +02:00
[ticket/11700] Correctly load avatar templates for namespaced drivers
PHPBB3-11700
This commit is contained in:
@@ -114,7 +114,7 @@ abstract class driver implements \phpbb\avatar\driver\driver_interface
|
|||||||
*/
|
*/
|
||||||
public function get_template_name()
|
public function get_template_name()
|
||||||
{
|
{
|
||||||
$driver = preg_replace('#^phpbb_avatar_driver_#', '', get_class($this));
|
$driver = preg_replace('#^phpbb\\\\avatar\\\\driver\\\\#', '', get_class($this));
|
||||||
$template = "ucp_avatar_options_$driver.html";
|
$template = "ucp_avatar_options_$driver.html";
|
||||||
|
|
||||||
return $template;
|
return $template;
|
||||||
|
@@ -277,7 +277,7 @@ class manager
|
|||||||
*/
|
*/
|
||||||
public function get_driver_config_name($driver)
|
public function get_driver_config_name($driver)
|
||||||
{
|
{
|
||||||
return preg_replace('#^phpbb\\avatar\\driver\\\\#', '', get_class($driver));
|
return preg_replace('#^phpbb\\\\avatar\\\\driver\\\\#', '', get_class($driver));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user