fixed a bug from the last commit
This commit is contained in:
parent
efa06c270e
commit
9368638b54
8
post.php
8
post.php
@ -282,16 +282,14 @@
|
|||||||
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'
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
exit;
|
|
||||||
|
|
||||||
// Remove DIR_* before inserting them into the database.
|
// Remove DIR_* before inserting them into the database.
|
||||||
if($post['has_file']) {
|
if($post['has_file']) {
|
||||||
$post['file'] = substr_replace($post['file'], '', 0, strlen($board['dir'] . $config['dir']['img']));
|
$post['file'] = substr_replace($post['file'], '', 0, strlen($board['dir'] . $config['dir']['img']));
|
||||||
|
Loading…
Reference in New Issue
Block a user