Browse Source

More use of mod log

pull/40/head
Michael Save 11 years ago
parent
commit
1ad71b33e2
  1. 10
      inc/mod/pages.php

10
inc/mod/pages.php

@ -209,6 +209,8 @@ function mod_edit_board($boardName) {
$query->bindValue(':title', $_POST['title']);
$query->bindValue(':subtitle', $_POST['subtitle']);
$query->execute() or error(db_error($query));
modLog('Edited board information for ' . sprintf($config['board_abbreviation'], $board['uri']), false);
}
if ($config['cache']['enabled']) {
@ -864,6 +866,8 @@ function mod_move($originBoard, $postID) {
}
}
modLog("Moved thread #${postID} to " . sprintf($config['board_abbreviation'], $targetBoard) . " (#${newID})", $originBoard);
// build new hread
buildThread($newID);
buildIndex();
@ -1019,8 +1023,12 @@ function mod_edit_post($board, $edit_raw_html, $postID) {
$query->bindValue(':body', $_POST['body']);
$query->execute() or error(db_error($query));
if (!$edit_raw_html)
if ($edit_raw_html) {
modLog("Edited raw HTML of post #{$postID}");
} else {
modLog("Edited post #{$postID}");
rebuildPost($postID);
}
buildIndex();

Loading…
Cancel
Save