diff options
| author | czaks <marcin@6irc.net> | 2015-03-10 14:22:47 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-03-10 14:22:47 +0100 |
| commit | bf1b6103cf6d3cf7f83e85453aad2d03e03e62da (patch) | |
| tree | 9460a02b2e7629059349fb88cacb1ad54bab1814 /templates/themes/catalog/theme.php | |
| parent | 6c4d3941fa729558f4a5313081c85b0a06202e54 (diff) | |
| parent | 4bf525599e7c596e7aec7f483664a091ef0db57b (diff) | |
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Diffstat (limited to 'templates/themes/catalog/theme.php')
| -rw-r--r-- | templates/themes/catalog/theme.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 9ba2d27a..f8f1146e 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -42,7 +42,7 @@ $board_name, $board_name, $board_name, $board_name, $board_name)) or error(db_error()); while ($post = $query->fetch(PDO::FETCH_ASSOC)) { - $post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id'])); + $post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . link_for($post); $post['board_name'] = $board['name']; if ($post['embed'] && preg_match('/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', $post['embed'], $matches)) { |
