mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11103] Create user loader class, update for DIC
Create a very basic user loader class to handle querying/storing user data in a centralized location. Use DIC collection service for notification types/methods. Cleanup unused dependencies. Fix some other issues. PHPBB3-11103
This commit is contained in:
@@ -717,9 +717,9 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
|
||||
}
|
||||
|
||||
$phpbb_notifications->delete_notifications(array(
|
||||
'phpbb_notification_type_topic',
|
||||
'phpbb_notification_type_approve_topic',
|
||||
'phpbb_notification_type_topic_in_queue',
|
||||
'topic',
|
||||
'approve_topic',
|
||||
'topic_in_queue',
|
||||
), $topic_ids);
|
||||
|
||||
return $return;
|
||||
@@ -901,11 +901,11 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
|
||||
}
|
||||
|
||||
$phpbb_notifications->delete_notifications(array(
|
||||
'phpbb_notification_type_quote',
|
||||
'phpbb_notification_type_bookmark',
|
||||
'phpbb_notification_type_post',
|
||||
'phpbb_notification_type_approve_post',
|
||||
'phpbb_notification_type_post_in_queue',
|
||||
'quote',
|
||||
'bookmark',
|
||||
'post',
|
||||
'approve_post',
|
||||
'post_in_queue',
|
||||
), $post_ids);
|
||||
|
||||
return sizeof($post_ids);
|
||||
|
Reference in New Issue
Block a user