aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/avatar/driver/interface.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2012-11-30 15:12:34 +0100
committerMarc Alexander <admin@m-a-styles.de>2012-11-30 15:12:34 +0100
commitd5cbedaaa28312c107ec562c78ffaa034595f336 (patch)
treed3befad8b3640244e10d6d97d58fc3a1a0d54ce0 /phpBB/includes/avatar/driver/interface.php
parent562ebe5c12b8a238b94a63ba53b694af4d061bc9 (diff)
downloadforums-d5cbedaaa28312c107ec562c78ffaa034595f336.tar
forums-d5cbedaaa28312c107ec562c78ffaa034595f336.tar.gz
forums-d5cbedaaa28312c107ec562c78ffaa034595f336.tar.bz2
forums-d5cbedaaa28312c107ec562c78ffaa034595f336.tar.xz
forums-d5cbedaaa28312c107ec562c78ffaa034595f336.zip
[feature/avatars] Let avatar manager handle $ignore_config
The avatar manager already handles if avatars are enabled. It should also handle ignoring the config settings. PHPBB3-10018
Diffstat (limited to 'phpBB/includes/avatar/driver/interface.php')
-rw-r--r--phpBB/includes/avatar/driver/interface.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/phpBB/includes/avatar/driver/interface.php b/phpBB/includes/avatar/driver/interface.php
index 7a58a40b0c..bba4bd102e 100644
--- a/phpBB/includes/avatar/driver/interface.php
+++ b/phpBB/includes/avatar/driver/interface.php
@@ -31,23 +31,21 @@ interface phpbb_avatar_driver_interface
/**
* Get the avatar url and dimensions
*
- * @param $ignore_config Whether this function should respect the users prefs
- * and board configuration configuration option, or should just render
- * the avatar anyways. Useful for the ACP.
+ * @param array $row User data or group data that has been cleaned with
+ * phpbb_avatar_manager::clean_row
* @return array Avatar data, must have keys src, width and height, e.g.
- * ['src' => '', 'width' => 0, 'height' => 0]
+ * ['src' => '', 'width' => 0, 'height' => 0]
*/
- public function get_data($row, $ignore_config = false);
+ public function get_data($row);
/**
* Returns custom html if it is needed for displaying this avatar
*
- * @param bool $ignore_config Whether this function should respect the users prefs
- * and board configuration configuration option, or should just render
- * the avatar anyways. Useful for the ACP.
+ * @param string $alt Alternate text for avatar image
+ *
* @return string HTML
*/
- public function get_custom_html($row, $ignore_config = false, $alt = '');
+ public function get_custom_html($row, $alt = '');
/**
* Prepare form for changing the settings of this avatar