aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-12-30 12:20:22 -0800
committerNathan Guse <nathaniel.guse@gmail.com>2013-12-30 12:20:22 -0800
commit821f737560330827ded1fd5eabead6ac23087e24 (patch)
tree9c5247e2a0e93d15ef5fcf2a95b36cc6441897df /phpBB/includes/functions.php
parentb186d31ce6b0502898e93cfa5e69e2d0da0758d0 (diff)
parentd76ec60ee15c1fafbb4212eda77b842e793108d0 (diff)
downloadforums-821f737560330827ded1fd5eabead6ac23087e24.tar
forums-821f737560330827ded1fd5eabead6ac23087e24.tar.gz
forums-821f737560330827ded1fd5eabead6ac23087e24.tar.bz2
forums-821f737560330827ded1fd5eabead6ac23087e24.tar.xz
forums-821f737560330827ded1fd5eabead6ac23087e24.zip
Merge pull request #1890 from prototech/ticket/12034
[ticket/12034] AJAXify notifications popup.
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 0d6c7be117..b688902e62 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -5099,7 +5099,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
}
$hidden_fields_for_jumpbox = phpbb_build_hidden_fields_for_query_params($request, array('f'));
-
+ $notification_mark_hash = generate_link_hash('mark_all_notifications_read');
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
@@ -5119,6 +5119,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
'UNREAD_NOTIFICATIONS_COUNT' => ($notifications !== false) ? $notifications['unread_count'] : '',
'NOTIFICATIONS_COUNT' => ($notifications !== false) ? $notifications['unread_count'] : '',
'U_VIEW_ALL_NOTIFICATIONS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_notifications'),
+ 'U_MARK_ALL_NOTIFICATIONS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_notifications&amp;mode=notification_list&amp;mark=all&amp;token=' . $notification_mark_hash),
'U_NOTIFICATION_SETTINGS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_notifications&amp;mode=notification_options'),
'S_NOTIFICATIONS_DISPLAY' => $config['load_notifications'],