diff options
| author | Marcin Łabanowski <marcin@6irc.net> | 2013-01-28 13:29:21 +0100 |
|---|---|---|
| committer | Marcin Łabanowski <marcin@6irc.net> | 2013-01-28 13:29:21 +0100 |
| commit | d1bd4e1f7bb67eb863f4fd4233720e6e9baea8d1 (patch) | |
| tree | 880263a122e50baa20cb6b22a9b4343cd0b456af /inc/mod | |
| parent | e6b9bad788a6d9ae5f203b999925b9368a77536c (diff) | |
| parent | fd33e9eba1e72fd4ee5f064944e9592be66c12c1 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Diffstat (limited to 'inc/mod')
| -rw-r--r-- | inc/mod/pages.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index f6ac3fc4..34945b08 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(); |
