diff options
| author | czaks <marcin@6irc.net> | 2013-12-23 19:01:08 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-12-23 19:01:08 +0100 |
| commit | 118cd77a4d9318dce1ae1b8a6c3b02366f825654 (patch) | |
| tree | 7f8e7af5fd1d8f1d08f8046aeaf6ce87a7c43607 /post.php | |
| parent | 13dbde96f40f008f76cdf6629e7d0bb5ad2f7580 (diff) | |
fix error on repost blockade: the expression had a bug
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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' - ) + )) )); } } |
