summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-04-28 15:08:02 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-04-28 15:08:02 +0900
commitb91432727cae7db4c209aa4d6d41e7fc7cbd7c3b (patch)
tree8b1431e0db8ee397bc0e87cdf38c78d190efcc72
parent501678d6bb8af3613e6bb1ce7c202e843f0c0b59 (diff)
Implemented fix for Invalid link_for call referencing deleted thread when op is deleted #98
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index 98e02758..65f54d11 100644
--- a/post.php
+++ b/post.php
@@ -254,7 +254,7 @@ if (isset($_POST['delete'])) {
}
_syslog(LOG_INFO, 'Deleted post: ' .
- '/' . $board['dir'] . $config['dir']['res'] . link_for($post) . ($post['thread'] ? '#' . $id : '')
+ '/' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $post['thread'] ? $post['thread'] : $id) . ($post['thread'] ? '#' . $id : '')
);
}
}