Moved rebuildThemes() in post.php back for now.
This commit is contained in:
parent
ac9cefd863
commit
7c8dc230b8
2
post.php
2
post.php
@ -552,7 +552,6 @@
|
|||||||
if(!@move_uploaded_file($_FILES['file']['tmp_name'], $post['file']))
|
if(!@move_uploaded_file($_FILES['file']['tmp_name'], $post['file']))
|
||||||
error($config['error']['nomove']);
|
error($config['error']['nomove']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$image->destroy();
|
$image->destroy();
|
||||||
} else {
|
} else {
|
||||||
// not an image
|
// not an image
|
||||||
@ -648,6 +647,7 @@
|
|||||||
if($config['syslog'])
|
if($config['syslog'])
|
||||||
_syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $OP?$id:$post['thread']) . (!$OP ? '#' . $id : ''));
|
_syslog(LOG_INFO, 'New post: /' . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $OP?$id:$post['thread']) . (!$OP ? '#' . $id : ''));
|
||||||
|
|
||||||
|
rebuildThemes('post');
|
||||||
header('Location: ' . $redirect, true, $config['redirect_http']);
|
header('Location: ' . $redirect, true, $config['redirect_http']);
|
||||||
} else {
|
} else {
|
||||||
if(!file_exists($config['has_installed'])) {
|
if(!file_exists($config['has_installed'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user