|
@@ 64-67 (lines=4) @@
|
| 61 |
|
isAllowedTo('lock_any'); |
| 62 |
|
|
| 63 |
|
// Another moderator got the job done first? |
| 64 |
|
if (isset($_GET['sa']) && $_GET['sa'] == 'unlock' && $locked == '0') |
| 65 |
|
fatal_lang_error('error_topic_locked_already', false); |
| 66 |
|
elseif (isset($_GET['sa']) && $_GET['sa'] == 'lock' && ($locked == '1' || $locked == '2')) |
| 67 |
|
fatal_lang_error('error_topic_unlocked_already', false); |
| 68 |
|
|
| 69 |
|
// Locking with high privileges. |
| 70 |
|
if ($locked == '0' && !$user_lock) |
|
@@ 143-146 (lines=4) @@
|
| 140 |
|
$smcFunc['db_free_result']($request); |
| 141 |
|
|
| 142 |
|
// Another moderator got the job done first? |
| 143 |
|
if (isset($_GET['sa']) && $_GET['sa'] == 'nonsticky' && $is_sticky == '0') |
| 144 |
|
fatal_lang_error('error_topic_nonsticky_already', false); |
| 145 |
|
elseif (isset($_GET['sa']) && $_GET['sa'] == 'sticky' && $is_sticky == '1') |
| 146 |
|
fatal_lang_error('error_topic_sticky_already', false); |
| 147 |
|
|
| 148 |
|
// Toggle the sticky value.... pretty simple ;). |
| 149 |
|
$smcFunc['db_query']('', ' |