@@ -1146,12 +1146,12 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
11461146
11471147 // Mark all topic notifications read for this user
11481148 $ phpbb_notifications ->mark_notifications_read (array (
1149- 'topic ' ,
1150- 'quote ' ,
1151- 'bookmark ' ,
1152- 'post ' ,
1153- 'approve_topic ' ,
1154- 'approve_post ' ,
1149+ 'notification.type. topic ' ,
1150+ 'notification.type. quote ' ,
1151+ 'notification.type. bookmark ' ,
1152+ 'notification.type. post ' ,
1153+ 'notification.type. approve_topic ' ,
1154+ 'notification.type. approve_post ' ,
11551155 ), false , $ user ->data ['user_id ' ], $ post_time );
11561156
11571157 if ($ config ['load_db_lastread ' ] && $ user ->data ['is_registered ' ])
@@ -1211,8 +1211,8 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
12111211 $ phpbb_notifications = $ phpbb_container ->get ('notification_manager ' );
12121212
12131213 $ phpbb_notifications ->mark_notifications_read_by_parent (array (
1214- 'topic ' ,
1215- 'approve_topic ' ,
1214+ 'notification.type. topic ' ,
1215+ 'notification.type. approve_topic ' ,
12161216 ), $ forum_id , $ user ->data ['user_id ' ], $ post_time );
12171217
12181218 // Mark all post/quote notifications read for this user in this forum
@@ -1228,10 +1228,10 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
12281228 $ db ->sql_freeresult ($ result );
12291229
12301230 $ phpbb_notifications ->mark_notifications_read_by_parent (array (
1231- 'quote ' ,
1232- 'bookmark ' ,
1233- 'post ' ,
1234- 'approve_post ' ,
1231+ 'notification.type. quote ' ,
1232+ 'notification.type. bookmark ' ,
1233+ 'notification.type. post ' ,
1234+ 'notification.type. approve_post ' ,
12351235 ), $ topic_ids , $ user ->data ['user_id ' ], $ post_time );
12361236
12371237 // Add 0 to forums array to mark global announcements correctly
@@ -1334,15 +1334,15 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
13341334
13351335 // Mark post notifications read for this user in this topic
13361336 $ phpbb_notifications ->mark_notifications_read (array (
1337- 'topic ' ,
1338- 'approve_topic ' ,
1337+ 'notification.type. topic ' ,
1338+ 'notification.type. approve_topic ' ,
13391339 ), $ topic_id , $ user ->data ['user_id ' ], $ post_time );
13401340
13411341 $ phpbb_notifications ->mark_notifications_read_by_parent (array (
1342- 'quote ' ,
1343- 'bookmark ' ,
1344- 'post ' ,
1345- 'approve_post ' ,
1342+ 'notification.type. quote ' ,
1343+ 'notification.type. bookmark ' ,
1344+ 'notification.type. post ' ,
1345+ 'notification.type. approve_post ' ,
13461346 ), $ topic_id , $ user ->data ['user_id ' ], $ post_time );
13471347
13481348 if ($ config ['load_db_lastread ' ] && $ user ->data ['is_registered ' ])
0 commit comments