1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00

fixed a bug from the last commit

This commit is contained in:
Savetheinternet 2011-02-19 19:48:13 +11:00
parent 9ce60b13f1
commit bc48de9415

View File

@ -282,16 +282,14 @@
error(sprintf($config['error']['fileexists'],
$post['mod'] ? $config['root'] . $config['file_mod'] . '?/' : $config['root'] .
$board['dir'] . $config['dir']['res'] .
($p->thread ?
$p->thread . '.html#' . $p->id
($p['thread'] ?
$p['thread'] . '.html#' . $p['id']
:
$p->id . '.html'
$p['id'] . '.html'
)
));
}
exit;
// Remove DIR_* before inserting them into the database.
if($post['has_file']) {
$post['file'] = substr_replace($post['file'], '', 0, strlen($board['dir'] . $config['dir']['img']));