diff options
| author | czaks <marcin@6irc.net> | 2013-12-23 19:01:08 +0100 |
|---|---|---|
| committer | Michael Foster <savetheinterpod@gmail.com> | 2014-01-19 14:42:03 -0500 |
| commit | 8bd99be6f1b316c9af93ab151c182217360e0c35 (patch) | |
| tree | 89cdb612c49b4060baba508ed57cd184728f1129 | |
| parent | 4537ef7f47ae659a05e6bb8e45aaa7a9bea92cad (diff) | |
fix error on repost blockade: the expression had a bug
| -rw-r--r-- | post.php | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -639,26 +639,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' - ) + )) )); } } |
