mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/11103] Normalization of $phpbb_notifications variable name
Use $phpbb_notifications instead of $notifications everywhere for consistency and conflict prevention. PHPBB3-11103
This commit is contained in:
@@ -717,8 +717,8 @@ function delete_topics($where_type, $where_ids, $auto_sync = true, $post_count_s
|
||||
}
|
||||
|
||||
// Delete notifications
|
||||
$notifications = $phpbb_container->get('notifications');
|
||||
$notifications->delete_notifications('topic', $topic_ids);
|
||||
$phpbb_notifications = $phpbb_container->get('notifications');
|
||||
$phpbb_notifications->delete_notifications('topic', $topic_ids);
|
||||
|
||||
return $return;
|
||||
}
|
||||
@@ -899,8 +899,8 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
|
||||
}
|
||||
|
||||
// Delete notifications
|
||||
$notifications = $phpbb_container->get('notifications');
|
||||
$notifications->delete_notifications('post', $post_ids);
|
||||
$phpbb_notifications = $phpbb_container->get('notifications');
|
||||
$phpbb_notifications->delete_notifications('post', $post_ids);
|
||||
|
||||
return sizeof($post_ids);
|
||||
}
|
||||
|
Reference in New Issue
Block a user