mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 17:28:41 +01:00
change thumb
to file
to overcome a nasty bug in upgrading
This commit is contained in:
parent
7ea8fa3829
commit
8c7505d396
@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
// board settings won't be available in the template file, so generate links now
|
// board settings won't be available in the template file, so generate links now
|
||||||
$post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id'])) . '#' . $post['id'];
|
$post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id'])) . '#' . $post['id'];
|
||||||
if ($files) $post['src'] = $config['uri_thumb'] . $files[0]->thumb;
|
if ($files) $post['src'] = $config['uri_thumb'] . $files[0]->file;
|
||||||
|
|
||||||
$recent_images[] = $post;
|
$recent_images[] = $post;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user