summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-12-06 03:00:59 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-12-06 03:00:59 +1100
commitd454fc6423e187c5a00f8d212324da62db77dbd6 (patch)
tree243b7a151aa3db513ba4453274ba4da04bee9512 /post.php
parentfd0eaa672f2659b77be59d1d561396f71dd8f5f8 (diff)
syslog() mod actions
Diffstat (limited to 'post.php')
-rw-r--r--post.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/post.php b/post.php
index 1139b1ec..352cbdb8 100644
--- a/post.php
+++ b/post.php
@@ -598,7 +598,8 @@
}
- _syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $OP?$id:$post['thread']) . (!$OP?'#'.$id:''));
+ if($config['syslog'])
+ _syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $OP?$id:$post['thread']) . (!$OP?'#'.$id:''));
rebuildThemes('post');
header('Location: ' . $redirect, true, $config['redirect_http']);