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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user