actually fix this bug
This commit is contained in:
parent
9416587d40
commit
211c1acec9
@ -2041,8 +2041,8 @@ function buildThread50($id, $return = false, $mod = false, $thread = null, $anti
|
|||||||
if (!isset($thread)) {
|
if (!isset($thread)) {
|
||||||
$thread = new Thread($post, $mod ? '?/' : $config['root'], $mod);
|
$thread = new Thread($post, $mod ? '?/' : $config['root'], $mod);
|
||||||
} else {
|
} else {
|
||||||
if ($post['file'])
|
if ($post['files'])
|
||||||
$num_images++;
|
$num_images += $post['num_files'];
|
||||||
|
|
||||||
$thread->add(new Post($post, $mod ? '?/' : $config['root'], $mod));
|
$thread->add(new Post($post, $mod ? '?/' : $config['root'], $mod));
|
||||||
}
|
}
|
||||||
@ -2075,7 +2075,7 @@ function buildThread50($id, $return = false, $mod = false, $thread = null, $anti
|
|||||||
if ($index == count($allPosts)-count($thread->posts))
|
if ($index == count($allPosts)-count($thread->posts))
|
||||||
break;
|
break;
|
||||||
if ($post->files)
|
if ($post->files)
|
||||||
$thread->omitted_images += count(json_decode($post->files));
|
$thread->omitted_images += $post->num_files;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user