1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

[ticket/12990] Fix unit tests

PHPBB3-12990
This commit is contained in:
Tristan Darricau
2014-08-17 14:43:17 +02:00
parent fe80967535
commit b18fe1203a
16 changed files with 97 additions and 95 deletions

View File

@@ -43,7 +43,8 @@ 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_parts = explode('.', $item_type);
$item_type = 'phpbb\notification\type\\' . array_pop($item_parts);
$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);