aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-09-14 17:01:08 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-09-14 17:01:08 -0500
commit8e977544fb6763412e45f84791de8c3eccf321c9 (patch)
tree86a3101c9ef934f7358b22f9d6fd40afb6e98503 /phpBB/includes/functions_posting.php
parented1ec8e720a7ec3c1270cd631cc37e531f315f26 (diff)
downloadforums-8e977544fb6763412e45f84791de8c3eccf321c9.tar
forums-8e977544fb6763412e45f84791de8c3eccf321c9.tar.gz
forums-8e977544fb6763412e45f84791de8c3eccf321c9.tar.bz2
forums-8e977544fb6763412e45f84791de8c3eccf321c9.tar.xz
forums-8e977544fb6763412e45f84791de8c3eccf321c9.zip
[ticket/11103] Normalization of $phpbb_notifications variable name
Use $phpbb_notifications instead of $notifications everywhere for consistency and conflict prevention. PHPBB3-11103
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 56f84562f7..e48a2b6bec 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -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;