forked from leftypol/leftypol
post.php: remove useless code
This commit is contained in:
parent
a095b0993c
commit
367953f134
1 changed files with 1 additions and 5 deletions
6
post.php
6
post.php
|
@ -1421,7 +1421,7 @@ function handle_post()
|
|||
$file['extension'] == ($config['thumb_ext'] ? $config['thumb_ext'] : $file['extension'])
|
||||
) {
|
||||
// Copy, because there's nothing to resize
|
||||
copy($file['tmp_name'], $file['thumb']);
|
||||
coopy($file['tmp_name'], $file['thumb']);
|
||||
|
||||
$file['thumbwidth'] = $image->size->width;
|
||||
$file['thumbheight'] = $image->size->height;
|
||||
|
@ -1686,10 +1686,6 @@ function handle_post()
|
|||
|
||||
$post = (array) $post;
|
||||
|
||||
if ($post['files']) {
|
||||
$post['files'] = $post['files'];
|
||||
}
|
||||
|
||||
$post['num_files'] = sizeof($post['files']);
|
||||
|
||||
$post['id'] = $id = post($post);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue