| @@ 683-696 (lines=14) @@ | ||
| 680 | } |
|
| 681 | $smcFunc['db_free_result']($request); |
|
| 682 | ||
| 683 | if ($context['is_marked_notify'] && !empty($board_sent)) |
|
| 684 | { |
|
| 685 | $smcFunc['db_query']('', ' |
|
| 686 | UPDATE {db_prefix}log_notify |
|
| 687 | SET sent = {int:is_sent} |
|
| 688 | WHERE id_member = {int:current_member} |
|
| 689 | AND id_board = {int:current_board}', |
|
| 690 | array( |
|
| 691 | 'current_board' => $board, |
|
| 692 | 'current_member' => $user_info['id'], |
|
| 693 | 'is_sent' => 0, |
|
| 694 | ) |
|
| 695 | ); |
|
| 696 | } |
|
| 697 | ||
| 698 | require_once($sourcedir . '/Subs-Notify.php'); |
|
| 699 | $pref = getNotifyPrefs($user_info['id'], array('board_notify', 'board_notify_' . $board), true); |
|
| @@ 2196-2210 (lines=15) @@ | ||
| 2193 | logAction(empty($_POST['sticky']) ? 'unsticky' : 'sticky', array('topic' => $topicOptions['id'], 'board' => $topicOptions['board'])); |
|
| 2194 | ||
| 2195 | // Returning to the topic? |
|
| 2196 | if (!empty($_REQUEST['goback'])) |
|
| 2197 | { |
|
| 2198 | // Mark the board as read.... because it might get confusing otherwise. |
|
| 2199 | $smcFunc['db_query']('', ' |
|
| 2200 | UPDATE {db_prefix}log_boards |
|
| 2201 | SET id_msg = {int:maxMsgID} |
|
| 2202 | WHERE id_member = {int:current_member} |
|
| 2203 | AND id_board = {int:current_board}', |
|
| 2204 | array( |
|
| 2205 | 'current_board' => $board, |
|
| 2206 | 'current_member' => $user_info['id'], |
|
| 2207 | 'maxMsgID' => $modSettings['maxMsgID'], |
|
| 2208 | ) |
|
| 2209 | ); |
|
| 2210 | } |
|
| 2211 | ||
| 2212 | if ($board_info['num_topics'] == 0) |
|
| 2213 | cache_put_data('board-' . $board, null, 120); |
|