summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-16 10:13:06 -0400
committerczaks <marcin@6irc.net>2013-08-16 10:13:06 -0400
commitb0312d4d36fa0e231e7d81bf62e6ddc3bc4f36c1 (patch)
tree9a4411d969a8a25e822d7360e7fc562e6484a053
parent3696ffd035d11ddea024c6bbd489737690d55dad (diff)
ukko: fix for new new Post and new Thread syntax
-rw-r--r--templates/themes/ukko/theme.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/templates/themes/ukko/theme.php b/templates/themes/ukko/theme.php
index 1682b4ec..c60d029a 100644
--- a/templates/themes/ukko/theme.php
+++ b/templates/themes/ukko/theme.php
@@ -42,11 +42,7 @@
if($count < $this->settings['thread_limit']) {
openBoard($post['board']);
- $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);
$posts = prepare(sprintf("SELECT * FROM ``posts_%s`` WHERE `thread` = :id ORDER BY `id` DESC LIMIT :limit", $post['board']));
$posts->bindValue(':id', $post['id']);
@@ -58,11 +54,7 @@
if ($po['file'])
$num_images++;
- $thread->add(new Post(
- $po['id'], $post['id'], $po['subject'], $po['email'], $po['name'], $po['trip'], $po['capcode'], $po['body'], $po['time'],
- $po['thumb'], $po['thumbwidth'], $po['thumbheight'], $po['file'], $po['filewidth'], $po['fileheight'], $po['filesize'],
- $po['filename'], $po['ip'], $po['embed'], $mod ? '?/' : $config['root'], $mod)
- );
+ $thread->add(new Post($po, $mod ? '?/' : $config['root'], $mod));
}
if ($posts->rowCount() == ($post['sticky'] ? $config['threads_preview_sticky'] : $config['threads_preview'])) {