fix error on repost blockade: the expression had a bug
This commit is contained in:
parent
13dbde96f4
commit
118cd77a4d
12
post.php
12
post.php
@ -643,26 +643,26 @@ if (isset($_POST['delete'])) {
|
|||||||
if ($p = getPostByHash($post['filehash'])) {
|
if ($p = getPostByHash($post['filehash'])) {
|
||||||
undoImage($post);
|
undoImage($post);
|
||||||
error(sprintf($config['error']['fileexists'],
|
error(sprintf($config['error']['fileexists'],
|
||||||
$post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'] .
|
($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) .
|
||||||
$board['dir'] . $config['dir']['res'] .
|
($board['dir'] . $config['dir']['res'] .
|
||||||
($p['thread'] ?
|
($p['thread'] ?
|
||||||
$p['thread'] . '.html#' . $p['id']
|
$p['thread'] . '.html#' . $p['id']
|
||||||
:
|
:
|
||||||
$p['id'] . '.html'
|
$p['id'] . '.html'
|
||||||
)
|
))
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
} else if (!$post['op'] && $config['image_reject_repost_in_thread']) {
|
} else if (!$post['op'] && $config['image_reject_repost_in_thread']) {
|
||||||
if ($p = getPostByHashInThread($post['filehash'], $post['thread'])) {
|
if ($p = getPostByHashInThread($post['filehash'], $post['thread'])) {
|
||||||
undoImage($post);
|
undoImage($post);
|
||||||
error(sprintf($config['error']['fileexistsinthread'],
|
error(sprintf($config['error']['fileexistsinthread'],
|
||||||
$post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'] .
|
($post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root']) .
|
||||||
$board['dir'] . $config['dir']['res'] .
|
($board['dir'] . $config['dir']['res'] .
|
||||||
($p['thread'] ?
|
($p['thread'] ?
|
||||||
$p['thread'] . '.html#' . $p['id']
|
$p['thread'] . '.html#' . $p['id']
|
||||||
:
|
:
|
||||||
$p['id'] . '.html'
|
$p['id'] . '.html'
|
||||||
)
|
))
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user