1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +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

@@ -2222,19 +2222,19 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
// Send Notifications
if ($post_approval)
{
$notifications = $phpbb_container->get('notifications');
$phpbb_notifications = $phpbb_container->get('notifications');
switch ($mode)
{
case 'post' :
$notifications->add_notifications(array('topic', 'quote'), array_merge($data, array(
$phpbb_notifications->add_notifications(array('topic', 'quote'), array_merge($data, array(
'post_username' => $username,
)));
break;
case 'reply' :
case 'quote' :
$notifications->add_notifications(array('quote', 'bookmark', 'post'), array_merge($data, array(
$phpbb_notifications->add_notifications(array('quote', 'bookmark', 'post'), array_merge($data, array(
'post_username' => $username,
)));
break;
@@ -2243,12 +2243,12 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
case 'edit_first_post' :
case 'edit' :
case 'edit_last_post' :
$notifications->update_notifications('topic', array_merge($data, array(
$phpbb_notifications->update_notifications('topic', array_merge($data, array(
'post_username' => $username,
'topic_title' => $subject,
)));
$notifications->update_notifications(array('quote', 'bookmark', 'post'), array_merge($data, array(
$phpbb_notifications->update_notifications(array('quote', 'bookmark', 'post'), array_merge($data, array(
'post_username' => $username,
)));
break;