aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/avatar/driver/driver.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-04-07 19:19:13 +0200
committerIgor Wiedler <igor@wiedler.ch>2012-04-07 19:20:11 +0200
commite861bb0e04c08b03366ec7c58473b630acc91181 (patch)
treed75650cb5d3a262eb3fe79c7842dce0f38b28a56 /phpBB/includes/avatar/driver/driver.php
parent3b0e0dba3279a78cab2336d32ee8ff63a7077c5c (diff)
downloadforums-e861bb0e04c08b03366ec7c58473b630acc91181.tar
forums-e861bb0e04c08b03366ec7c58473b630acc91181.tar.gz
forums-e861bb0e04c08b03366ec7c58473b630acc91181.tar.bz2
forums-e861bb0e04c08b03366ec7c58473b630acc91181.tar.xz
forums-e861bb0e04c08b03366ec7c58473b630acc91181.zip
[feature/avatars] Use request object in avatar drivers
PHPBB3-10018
Diffstat (limited to 'phpBB/includes/avatar/driver/driver.php')
-rw-r--r--phpBB/includes/avatar/driver/driver.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/includes/avatar/driver/driver.php b/phpBB/includes/avatar/driver/driver.php
index d158c419bd..8fb80693fb 100644
--- a/phpBB/includes/avatar/driver/driver.php
+++ b/phpBB/includes/avatar/driver/driver.php
@@ -26,7 +26,13 @@ abstract class phpbb_avatar_driver
* @type phpbb_config
*/
protected $config;
-
+
+ /**
+ * Current board configuration
+ * @type phpbb_config
+ */
+ protected $request;
+
/**
* Current $phpbb_root_path
* @type string
@@ -62,13 +68,15 @@ abstract class phpbb_avatar_driver
* Construct an driver object
*
* @param $config The phpBB configuration
+ * @param $request The request object
* @param $phpbb_root_path The path to the phpBB root
* @param $phpEx The php file extension
* @param $cache A cache driver
*/
- public function __construct(phpbb_config $config, $phpbb_root_path, $phpEx, phpbb_cache_driver_interface $cache = null)
+ public function __construct(phpbb_config $config, phpbb_request $request, $phpbb_root_path, $phpEx, phpbb_cache_driver_interface $cache = null)
{
$this->config = $config;
+ $this->request = $request;
$this->phpbb_root_path = $phpbb_root_path;
$this->phpEx = $phpEx;
$this->cache = $cache;