summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-12-23 19:01:08 +0100
committerMichael Foster <savetheinterpod@gmail.com>2014-01-19 14:42:03 -0500
commit8bd99be6f1b316c9af93ab151c182217360e0c35 (patch)
tree89cdb612c49b4060baba508ed57cd184728f1129
parent4537ef7f47ae659a05e6bb8e45aaa7a9bea92cad (diff)
fix error on repost blockade: the expression had a bug
-rw-r--r--post.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/post.php b/post.php
index a8ba8dba..1e95ff5a 100644
--- a/post.php
+++ b/post.php
@@ -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'
- )
+ ))
));
}
}