From 118cd77a4d9318dce1ae1b8a6c3b02366f825654 Mon Sep 17 00:00:00 2001 From: czaks Date: Mon, 23 Dec 2013 19:01:08 +0100 Subject: [PATCH] fix error on repost blockade: the expression had a bug --- post.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/post.php b/post.php index 39491eef..d4234b54 100644 --- a/post.php +++ b/post.php @@ -643,26 +643,26 @@ if (isset($_POST['delete'])) { if ($p = getPostByHash($post['filehash'])) { undoImage($post); error(sprintf($config['error']['fileexists'], - $post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'] . - $board['dir'] . $config['dir']['res'] . + ($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) . + ($board['dir'] . $config['dir']['res'] . ($p['thread'] ? $p['thread'] . '.html#' . $p['id'] : $p['id'] . '.html' - ) + )) )); } } else if (!$post['op'] && $config['image_reject_repost_in_thread']) { if ($p = getPostByHashInThread($post['filehash'], $post['thread'])) { undoImage($post); error(sprintf($config['error']['fileexistsinthread'], - $post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'] . - $board['dir'] . $config['dir']['res'] . + ($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) . + ($board['dir'] . $config['dir']['res'] . ($p['thread'] ? $p['thread'] . '.html#' . $p['id'] : $p['id'] . '.html' - ) + )) )); } }