aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/avatar/driver/driver_interface.php
diff options
context:
space:
mode:
authorjaviexin <javiexin@gmail.com>2015-07-16 10:47:04 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-01-02 17:16:03 +0100
commit14dc274e9e3568a276c654b0845252019525fb6f (patch)
treeeec5c905e17c86876866b380c74e2f9b285e1288 /phpBB/phpbb/avatar/driver/driver_interface.php
parent296243f34f32e1e811c9cc93d967e774ba2dd2e3 (diff)
downloadforums-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/driver/driver_interface.php')
-rw-r--r--phpBB/phpbb/avatar/driver/driver_interface.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/phpbb/avatar/driver/driver_interface.php b/phpBB/phpbb/avatar/driver/driver_interface.php
index 835609745a..d984717d74 100644
--- a/phpBB/phpbb/avatar/driver/driver_interface.php
+++ b/phpBB/phpbb/avatar/driver/driver_interface.php
@@ -26,6 +26,13 @@ interface driver_interface
public function get_name();
/**
+ * Returns the config name of the driver. To be used in accessing the CONFIG variables.
+ *
+ * @return string Config name of driver.
+ */
+ public function get_config_name();
+
+ /**
* Get the avatar url and dimensions
*
* @param array $row User data or group data that has been cleaned with