summaryrefslogtreecommitdiff
path: root/inc/mod
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2013-01-27 19:02:47 +1100
committerMichael Save <savetheinternet@tinyboard.org>2013-01-27 19:02:47 +1100
commit1ad71b33e21f4088f7dfae64b1efa3df3a9d8feb (patch)
treea1670614cdbe9ce0764b709b5243053e04634a37 /inc/mod
parentbf792ae7b7dc2231405eaa163f17f2009481a57d (diff)
More use of mod log
Diffstat (limited to 'inc/mod')
-rw-r--r--inc/mod/pages.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 592ac5b1..cf06e7d9 100644
--- a/inc/mod/pages.php
+++ b/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();