1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 18:47:20 +01:00

fix noko50 for new new Post and new Thread syntax

This commit is contained in:
czaks 2013-08-16 10:09:37 -04:00
parent e440851526
commit 8114e927d0

View File

@ -1794,20 +1794,12 @@ function buildThread50($id, $return = false, $mod = false, $thread = null) {
$num_images = 0; $num_images = 0;
while ($post = $query->fetch(PDO::FETCH_ASSOC)) { while ($post = $query->fetch(PDO::FETCH_ASSOC)) {
if (!isset($thread)) { if (!isset($thread)) {
$thread = new Thread( $thread = new Thread($post, $mod ? '?/' : $config['root'], $mod);
$post['id'], $post['subject'], $post['email'], $post['name'], $post['trip'], $post['capcode'], $post['body'], $post['time'],
$post['thumb'], $post['thumbwidth'], $post['thumbheight'], $post['file'], $post['filewidth'], $post['fileheight'], $post['filesize'],
$post['filename'], $post['ip'], $post['sticky'], $post['locked'], $post['sage'], $post['embed'], $mod ? '?/' : $config['root'], $mod
);
} else { } else {
if ($post['file']) if ($post['file'])
$num_images++; $num_images++;
$thread->add(new Post( $thread->add(new Post($post, $mod ? '?/' : $config['root'], $mod);
$post['id'], $thread->id, $post['subject'], $post['email'], $post['name'], $post['trip'], $post['capcode'], $post['body'],
$post['time'], $post['thumb'], $post['thumbwidth'], $post['thumbheight'], $post['file'], $post['filewidth'], $post['fileheight'],
$post['filesize'], $post['filename'], $post['ip'], $post['embed'], $mod ? '?/' : $config['root'], $mod)
);
} }
} }