1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 17:56:52 +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:
Nathan Guse
2012-09-14 17:01:08 -05:00
parent ed1ec8e720
commit 8e977544fb
5 changed files with 21 additions and 21 deletions

View File

@@ -634,19 +634,19 @@ function approve_post($post_id_list, $id, $mode)
// Send out normal user notifications
$email_sig = str_replace('<br />', "\n", "-- \n" . $config['board_email_sig']);
$notifications = $phpbb_container->get('notifications');
$phpbb_notifications = $phpbb_container->get('notifications');
foreach ($post_info as $post_id => $post_data)
{
if ($post_id == $post_data['topic_first_post_id'] && $post_id == $post_data['topic_last_post_id'])
{
// Forum Notifications
$notifications->add_notifications('topic', $post_data);
$phpbb_notifications->add_notifications('topic', $post_data);
}
else
{
// Topic Notifications
$notifications->add_notifications(array('quote', 'bookmark', 'post'), $post_data);
$phpbb_notifications->add_notifications(array('quote', 'bookmark', 'post'), $post_data);
}
}