mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
Fix incorrect log message when bumplocking and stickying threads.
This commit is contained in:
parent
fda99305ae
commit
322b902c8a
@ -707,7 +707,7 @@ function mod_sticky($board, $unsticky, $post) {
|
|||||||
$query->bindValue(':sticky', $unsticky ? 0 : 1);
|
$query->bindValue(':sticky', $unsticky ? 0 : 1);
|
||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
if ($query->rowCount()) {
|
if ($query->rowCount()) {
|
||||||
modLog(($unlock ? 'Unstickied' : 'Stickied') . " thread #{$post}");
|
modLog(($unsticky ? 'Unstickied' : 'Stickied') . " thread #{$post}");
|
||||||
buildThread($post);
|
buildThread($post);
|
||||||
buildIndex();
|
buildIndex();
|
||||||
}
|
}
|
||||||
@ -729,7 +729,7 @@ function mod_bumplock($board, $unbumplock, $post) {
|
|||||||
$query->bindValue(':bumplock', $unbumplock ? 0 : 1);
|
$query->bindValue(':bumplock', $unbumplock ? 0 : 1);
|
||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
if ($query->rowCount()) {
|
if ($query->rowCount()) {
|
||||||
modLog(($unlock ? 'Unbumplocked' : 'Bumplocked') . " thread #{$post}");
|
modLog(($unbumplock ? 'Unbumplocked' : 'Bumplocked') . " thread #{$post}");
|
||||||
buildThread($post);
|
buildThread($post);
|
||||||
buildIndex();
|
buildIndex();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user