diff --git a/mod.php b/mod.php index e87755e1..04f52f13 100644 --- a/mod.php +++ b/mod.php @@ -312,14 +312,15 @@ $post_query->execute() or error(db_error($query)); if($post = $post_query->fetch()) { - $log['text'] = preg_replace('/post #(\d+)/', '$0', $log['text']); + '">$1/a>', $log['text']); } if($config['cache']['enabled'])