| @@ 682-695 (lines=14) @@ | ||
| 679 | } |
|
| 680 | $smcFunc['db_free_result']($request); |
|
| 681 | ||
| 682 | if ($context['is_marked_notify'] && !empty($board_sent)) |
|
| 683 | { |
|
| 684 | $smcFunc['db_query']('', ' |
|
| 685 | UPDATE {db_prefix}log_notify |
|
| 686 | SET sent = {int:is_sent} |
|
| 687 | WHERE id_member = {int:current_member} |
|
| 688 | AND id_board = {int:current_board}', |
|
| 689 | array( |
|
| 690 | 'current_board' => $board, |
|
| 691 | 'current_member' => $user_info['id'], |
|
| 692 | 'is_sent' => 0, |
|
| 693 | ) |
|
| 694 | ); |
|
| 695 | } |
|
| 696 | ||
| 697 | require_once($sourcedir . '/Subs-Notify.php'); |
|
| 698 | $pref = getNotifyPrefs($user_info['id'], array('board_notify', 'board_notify_' . $board), true); |
|
| @@ 2230-2244 (lines=15) @@ | ||
| 2227 | logAction(empty($_POST['sticky']) ? 'unsticky' : 'sticky', array('topic' => $topicOptions['id'], 'board' => $topicOptions['board'])); |
|
| 2228 | ||
| 2229 | // Returning to the topic? |
|
| 2230 | if (!empty($_REQUEST['goback'])) |
|
| 2231 | { |
|
| 2232 | // Mark the board as read.... because it might get confusing otherwise. |
|
| 2233 | $smcFunc['db_query']('', ' |
|
| 2234 | UPDATE {db_prefix}log_boards |
|
| 2235 | SET id_msg = {int:maxMsgID} |
|
| 2236 | WHERE id_member = {int:current_member} |
|
| 2237 | AND id_board = {int:current_board}', |
|
| 2238 | array( |
|
| 2239 | 'current_board' => $board, |
|
| 2240 | 'current_member' => $user_info['id'], |
|
| 2241 | 'maxMsgID' => $modSettings['maxMsgID'], |
|
| 2242 | ) |
|
| 2243 | ); |
|
| 2244 | } |
|
| 2245 | ||
| 2246 | if ($board_info['num_topics'] == 0) |
|
| 2247 | cache_put_data('board-' . $board, null, 120); |
|