1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/11700] Correctly load avatar templates for namespaced drivers

PHPBB3-11700
This commit is contained in:
Nils Adermann
2013-09-19 16:21:38 +02:00
parent 733020f5f9
commit 40ea7422b1
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ abstract class driver implements \phpbb\avatar\driver\driver_interface
*/
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";
return $template;