mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11700] Correctly load avatar templates for namespaced drivers
PHPBB3-11700
This commit is contained in:
parent
733020f5f9
commit
40ea7422b1
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue