From 5039584a5edc688ed676ae25cdf9ca3adf9e1c8a Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Sun, 4 May 2014 19:24:34 -0400 Subject: [PATCH] Fix ?/recent str_replace issue --- inc/mod/pages.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 0ddffd30..1452d109 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2261,17 +2261,13 @@ function mod_recent_posts($lim) { // Still need to fix this: $po = new Thread($post, '?/', $mod, false); $string = $po->build(true); - $replacement = str_replace('

', - '

/'.$post['board'].'/'.$post['id'].'

', - $string); + $string = '


/'.$post['board'].'/'.$post['id'].'
' . $string; } else { $po = new Post($post, '?/', $mod); $string = $po->build(true); - $replacement = str_replace('
/'.$post['board'].'/'.$post['id'].'

/'.$post['board'].'/'.$post['id'].'
' . $string; } - $body .= $replacement . '
'; + $body .= $string . '
'; } echo Element('page.html', array(