mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
[ticket/11700] Correclty use namespaces in notifications
PHPBB3-11700
This commit is contained in:
@@ -40,7 +40,7 @@ class phpbb_notification_manager_helper extends \phpbb\notification\manager
|
||||
*/
|
||||
public function get_item_type_class($item_type, $data = array())
|
||||
{
|
||||
$item_type = 'phpbb_notification_type_' . $item_type;
|
||||
$item_type = 'phpbb\notification\type\\' . $item_type;
|
||||
|
||||
$item = new $item_type($this->user_loader, $this->db, $this->cache->get_driver(), $this->user, $this->auth, $this->config, $this->phpbb_root_path, $this->php_ext, $this->notification_types_table, $this->notifications_table, $this->user_notifications_table);
|
||||
|
||||
@@ -56,7 +56,7 @@ class phpbb_notification_manager_helper extends \phpbb\notification\manager
|
||||
*/
|
||||
public function get_method_class($method_name)
|
||||
{
|
||||
$method_name = 'phpbb_notification_method_' . $method_name;
|
||||
$method_name = 'phpbb\notification\method\\' . $method_name;
|
||||
|
||||
$method = new $method_name($this->user_loader, $this->db, $this->cache->get_driver(), $this->user, $this->auth, $this->config, $this->phpbb_root_path, $this->php_ext, $this->notification_types_table, $this->notifications_table, $this->user_notifications_table);
|
||||
|
||||
|
Reference in New Issue
Block a user