mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 12:23:48 +01:00
ukko: fix for new new Post and new Thread syntax
This commit is contained in:
parent
2cc47eae5f
commit
de148485a6
@ -42,11 +42,7 @@
|
|||||||
|
|
||||||
if($count < $this->settings['thread_limit']) {
|
if($count < $this->settings['thread_limit']) {
|
||||||
openBoard($post['board']);
|
openBoard($post['board']);
|
||||||
$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
|
|
||||||
);
|
|
||||||
|
|
||||||
$posts = prepare(sprintf("SELECT * FROM ``posts_%s`` WHERE `thread` = :id ORDER BY `id` DESC LIMIT :limit", $post['board']));
|
$posts = prepare(sprintf("SELECT * FROM ``posts_%s`` WHERE `thread` = :id ORDER BY `id` DESC LIMIT :limit", $post['board']));
|
||||||
$posts->bindValue(':id', $post['id']);
|
$posts->bindValue(':id', $post['id']);
|
||||||
@ -58,11 +54,7 @@
|
|||||||
if ($po['file'])
|
if ($po['file'])
|
||||||
$num_images++;
|
$num_images++;
|
||||||
|
|
||||||
$thread->add(new Post(
|
$thread->add(new Post($po, $mod ? '?/' : $config['root'], $mod));
|
||||||
$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)
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($posts->rowCount() == ($post['sticky'] ? $config['threads_preview_sticky'] : $config['threads_preview'])) {
|
if ($posts->rowCount() == ($post['sticky'] ? $config['threads_preview_sticky'] : $config['threads_preview'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user