change thumb to file to overcome a nasty bug in upgrading

This commit is contained in:
czaks 2014-04-27 16:05:38 +02:00
parent 28b9584a7b
commit b0faa1a7e4

View File

@ -61,7 +61,7 @@
// 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'];
if ($files) $post['src'] = $config['uri_thumb'] . $files[0]->thumb;
if ($files) $post['src'] = $config['uri_thumb'] . $files[0]->file;
$recent_images[] = $post;
}