diff options
| author | czaks <marcin@6irc.net> | 2016-06-19 02:23:24 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-06-19 02:23:24 +0200 |
| commit | fed9065cf1fe759e20ec10baf0aba1309ee6f8ab (patch) | |
| tree | e198fd0d2912b391acf976119adfae73a3474607 /templates | |
| parent | 356f46237c3281b09d1fcc1df4e19cb12947063e (diff) | |
skip non-image files in recent themes; fixes vichan-devel/vichan#185
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/themes/recent/theme.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php index 95921c35..a826048f 100644 --- a/templates/themes/recent/theme.php +++ b/templates/themes/recent/theme.php @@ -65,7 +65,7 @@ if (isset($post['files'])) $files = json_decode($post['files']); - if ($files[0]->file == 'deleted') continue; + if ($files[0]->file == 'deleted' || $files[0]->thumb == 'file') continue; // board settings won't be available in the template file, so generate links now $post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] |
