| @@ 320-333 (lines=14) @@ | ||
| 317 | * @param int $status |
|
| 318 | * @param int $member_id |
|
| 319 | */ |
|
| 320 | protected function _updateMenuCount($status, $member_id) |
|
| 321 | { |
|
| 322 | require_once(SUBSDIR . '/Members.subs.php'); |
|
| 323 | ||
| 324 | // If its new add to our menu count |
|
| 325 | if ($status === 0) |
|
| 326 | updateMemberData($member_id, array('mentions' => '+')); |
|
| 327 | // Mark as read we decrease the count |
|
| 328 | elseif ($status === 1) |
|
| 329 | updateMemberData($member_id, array('mentions' => '-')); |
|
| 330 | // Deleting or un-approving may have been read or not, so a count is required |
|
| 331 | else |
|
| 332 | countUserMentions(false, '', $member_id); |
|
| 333 | } |
|
| 334 | } |
|
| @@ 311-324 (lines=14) @@ | ||
| 308 | * @param int|null $status |
|
| 309 | * @param int $member_id |
|
| 310 | */ |
|
| 311 | function updateMentionMenuCount($status, $member_id) |
|
| 312 | { |
|
| 313 | require_once(SUBSDIR . '/Members.subs.php'); |
|
| 314 | ||
| 315 | // If its new add to our menu count |
|
| 316 | if ($status === 0) |
|
| 317 | updateMemberData($member_id, array('mentions' => '+')); |
|
| 318 | // Mark as read we decrease the count |
|
| 319 | elseif ($status === 1) |
|
| 320 | updateMemberData($member_id, array('mentions' => '-')); |
|
| 321 | // Deleting or un-approving may have been read or not, so a count is required |
|
| 322 | else |
|
| 323 | countUserMentions(false, '', $member_id); |
|
| 324 | } |
|
| 325 | ||
| 326 | /** |
|
| 327 | * Retrieves the time the last notification of a certain member was added. |
|