mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-19 15:01:33 +02:00
[ticket/14285] Fix undefined property
PHPBB3-14285
This commit is contained in:
@@ -15,6 +15,7 @@ namespace phpbb\storage\controller;
|
||||
|
||||
use phpbb\cache\service;
|
||||
use phpbb\config\config;
|
||||
use phpbb\db\driver\driver_interface;
|
||||
use phpbb\storage\storage;
|
||||
|
||||
class avatar extends controller
|
||||
@@ -24,10 +25,11 @@ class avatar extends controller
|
||||
|
||||
protected $allowed_extensions = ['png', 'gif', 'jpg', 'jpeg'];
|
||||
|
||||
public function __construct(service $cache, config $config, storage $storage)
|
||||
public function __construct(service $cache, config $config, driver_interface $db, storage $storage)
|
||||
{
|
||||
$this->cache = $cache;
|
||||
$this->config = $config;
|
||||
$this->db = $db;
|
||||
$this->storage = $storage;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user