summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-16 10:09:37 -0400
committerczaks <marcin@6irc.net>2013-08-16 10:09:37 -0400
commit8a4b7c334906d16a154c09aa936d63dabb930282 (patch)
tree15a81c98208437aebd6a7e18ee492cb9faa8c834
parent146243c473f24e6b86e711dd1afeebfcdd711af7 (diff)
fix noko50 for new new Post and new Thread syntax
-rw-r--r--inc/functions.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/inc/functions.php b/inc/functions.php
index dccb59e5..768248bb 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1794,20 +1794,12 @@ function buildThread50($id, $return = false, $mod = false, $thread = null) {
$num_images = 0;
while ($post = $query->fetch(PDO::FETCH_ASSOC)) {
if (!isset($thread)) {
- $thread = new Thread(
- $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
- );
+ $thread = new Thread($post, $mod ? '?/' : $config['root'], $mod);
} else {
if ($post['file'])
$num_images++;
- $thread->add(new Post(
- $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)
- );
+ $thread->add(new Post($post, $mod ? '?/' : $config['root'], $mod);
}
}