aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-11-23 20:11:49 -0800
committerCesar G <prototech91@gmail.com>2013-12-30 11:12:15 -0800
commitf4b832a27d128ec84142dfe6133dc6ba96b8d3a9 (patch)
tree02716fb3c67019d8f4749faa7ce554334cff9fa5 /phpBB/phpbb/notification
parentbe67124dc7d5461c9b085e4dc3f32ece87e4b1aa (diff)
downloadforums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.tar
forums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.tar.gz
forums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.tar.bz2
forums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.tar.xz
forums-f4b832a27d128ec84142dfe6133dc6ba96b8d3a9.zip
[ticket/12034] AJAXify notifications popup.
PHPBB3-12034
Diffstat (limited to 'phpBB/phpbb/notification')
-rw-r--r--phpBB/phpbb/notification/type/base.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/phpbb/notification/type/base.php b/phpBB/phpbb/notification/type/base.php
index 951585853f..10c876b286 100644
--- a/phpBB/phpbb/notification/type/base.php
+++ b/phpBB/phpbb/notification/type/base.php
@@ -282,15 +282,17 @@ abstract class base implements \phpbb\notification\type\type_interface
*/
public function prepare_for_display()
{
+ $mark_hash = generate_link_hash('mark_notification_read');
+
if ($this->get_url())
{
- $u_mark_read = append_sid($this->phpbb_root_path . 'index.' . $this->php_ext, 'mark_notification=' . $this->notification_id);
+ $u_mark_read = append_sid($this->phpbb_root_path . 'index.' . $this->php_ext, 'mark_notification=' . $this->notification_id . '&amp;hash=' . $mark_hash);
}
else
{
$redirect = (($this->user->page['page_dir']) ? $this->user->page['page_dir'] . '/' : '') . $this->user->page['page_name'] . (($this->user->page['query_string']) ? '?' . $this->user->page['query_string'] : '');
- $u_mark_read = append_sid($this->phpbb_root_path . 'index.' . $this->php_ext, 'mark_notification=' . $this->notification_id . '&amp;redirect=' . urlencode($redirect));
+ $u_mark_read = append_sid($this->phpbb_root_path . 'index.' . $this->php_ext, 'mark_notification=' . $this->notification_id . '&amp;hash=' . $mark_hash . '&amp;redirect=' . urlencode($redirect));
}
return array(