summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/post.php b/post.php
index 5ec63032..e2e2f56a 100644
--- a/post.php
+++ b/post.php
@@ -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']));