summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 041e3733..b8198522 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -204,7 +204,7 @@ function loadConfig() {
if (!isset($config['user_flag']))
$config['user_flag'] = false;
if (!isset($config['user_flags']))
- $config['user_flags'] = [];
+ $config['user_flags'] = array();
if ($config['root_file']) {
chdir($config['root_file']);
@@ -2041,8 +2041,8 @@ function buildThread50($id, $return = false, $mod = false, $thread = null, $anti
if (!isset($thread)) {
$thread = new Thread($post, $mod ? '?/' : $config['root'], $mod);
} else {
- if ($post['file'])
- $num_images++;
+ if ($post['files'])
+ $num_images += $post['num_files'];
$thread->add(new Post($post, $mod ? '?/' : $config['root'], $mod));
}
@@ -2074,8 +2074,8 @@ function buildThread50($id, $return = false, $mod = false, $thread = null, $anti
foreach ($allPosts as $index => $post) {
if ($index == count($allPosts)-count($thread->posts))
break;
- if ($post->file)
- $thread->omitted_images++;
+ if ($post->files)
+ $thread->omitted_images += $post->num_files;
}
}