slight display change
This commit is contained in:
parent
b7cfd5d0e4
commit
feb2e83a1a
5
mod.php
5
mod.php
@ -312,14 +312,15 @@
|
|||||||
$post_query->execute() or error(db_error($query));
|
$post_query->execute() or error(db_error($query));
|
||||||
|
|
||||||
if($post = $post_query->fetch()) {
|
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']]) .
|
sprintf($config['board_path'], $boards[$log['board']]) .
|
||||||
$config['dir']['res'] .
|
$config['dir']['res'] .
|
||||||
($post['thread'] ?
|
($post['thread'] ?
|
||||||
sprintf($config['file_page'], $post['thread']) . '#' . $match[1]
|
sprintf($config['file_page'], $post['thread']) . '#' . $match[1]
|
||||||
: sprintf($config['file_page'], $match[1])) .
|
: sprintf($config['file_page'], $match[1])) .
|
||||||
'">$0</a>', $log['text']);
|
'">$1/a>', $log['text']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($config['cache']['enabled'])
|
if($config['cache']['enabled'])
|
||||||
|
Loading…
Reference in New Issue
Block a user