slight display change

This commit is contained in:
Michael Save 2012-01-09 10:45:51 +11:00
parent b7cfd5d0e4
commit feb2e83a1a

View File

@ -312,14 +312,15 @@
$post_query->execute() or error(db_error($query));
if($post = $post_query->fetch()) {
$log['text'] = preg_replace('/post #(\d+)/', '<a href="' .
$log['text'] = preg_replace('/post (#(\d+))/',
'post <a href="' .
'?/' .
sprintf($config['board_path'], $boards[$log['board']]) .
$config['dir']['res'] .
($post['thread'] ?
sprintf($config['file_page'], $post['thread']) . '#' . $match[1]
: sprintf($config['file_page'], $match[1])) .
'">$0</a>', $log['text']);
'">$1/a>', $log['text']);
}
if($config['cache']['enabled'])