diff options
| author | javiexin <javiexin@gmail.com> | 2015-07-16 10:47:04 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2016-01-02 17:16:03 +0100 |
| commit | 14dc274e9e3568a276c654b0845252019525fb6f (patch) | |
| tree | eec5c905e17c86876866b380c74e2f9b285e1288 /phpBB/phpbb/avatar/manager.php | |
| parent | 296243f34f32e1e811c9cc93d967e774ba2dd2e3 (diff) | |
| download | forums-14dc274e9e3568a276c654b0845252019525fb6f.tar forums-14dc274e9e3568a276c654b0845252019525fb6f.tar.gz forums-14dc274e9e3568a276c654b0845252019525fb6f.tar.bz2 forums-14dc274e9e3568a276c654b0845252019525fb6f.tar.xz forums-14dc274e9e3568a276c654b0845252019525fb6f.zip | |
[ticket/14387] Extend avatar-driver by extension in ACP not possible
Create a driver method to provide the driver config name, and use it
within the manager method. Default driver config name is the same as now.
But new drivers are able to override the config name with their own.
PHPBB3-14387
Diffstat (limited to 'phpBB/phpbb/avatar/manager.php')
| -rw-r--r-- | phpBB/phpbb/avatar/manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/avatar/manager.php b/phpBB/phpbb/avatar/manager.php index 8d83152ed6..5274ac6a26 100644 --- a/phpBB/phpbb/avatar/manager.php +++ b/phpBB/phpbb/avatar/manager.php @@ -276,7 +276,7 @@ class manager */ public function get_driver_config_name($driver) { - return preg_replace('#^phpbb\\\\avatar\\\\driver\\\\#', '', get_class($driver)); + return $driver->get_config_name(); } /** |
