summaryrefslogtreecommitdiff
path: root/inc/mod/pages.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-05-05 17:29:52 +0200
committerczaks <marcin@6irc.net>2014-05-05 17:29:52 +0200
commite3ac13289d6df29a8cd4f1678c258c9d26e14e47 (patch)
treeddc6744098efd5d842eb5bc80cce04f85290938f /inc/mod/pages.php
parentab52741a5f6a34a81f5a0e066c95f08a4e470261 (diff)
parent5039584a5edc688ed676ae25cdf9ca3adf9e1c8a (diff)
Merge branch 'staging' of github.com:vichan-devel/Tinyboard into staging
Diffstat (limited to 'inc/mod/pages.php')
-rw-r--r--inc/mod/pages.php10
1 files 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('<p class="fileinfo">',
- '<div class="post-wrapper" data-board="'.$post['board'].'"><a class="eita-link" id="eita-'.$post['board'].'-'.$post['id'].'" href="?/'.$post['board'].'/res/'.$post['id'].'.html#'.$post['id'].'">/'.$post['board'].'/'.$post['id'].'</a><br><p class="fileinfo">',
- $string);
+ $string = '<div class="post-wrapper" data-board="'.$post['board'].'"><hr/><a class="eita-link" id="eita-'.$post['board'].'-'.$post['id'].'" href="?/'.$post['board'].'/res/'.$post['id'].'.html#'.$post['id'].'">/'.$post['board'].'/'.$post['id'].'</a><br>' . $string;
} else {
$po = new Post($post, '?/', $mod);
$string = $po->build(true);
- $replacement = str_replace('<div class="post reply"',
- '<div class="post-wrapper" data-board="'.$post['board'].'"><a class="eita-link" id="eita-'.$post['board'].'-'.$post['id'].'" href="?/'.$post['board'].'/res/'.$post['thread'].'.html#'.$post['id'].'">/'.$post['board'].'/'.$post['id'].'</a><br><div class="post reply"',
- $string);
+ $string = '<div class="post-wrapper" data-board="'.$post['board'].'"><hr/><a class="eita-link" id="eita-'.$post['board'].'-'.$post['id'].'" href="?/'.$post['board'].'/res/'.$post['thread'].'.html#'.$post['id'].'">/'.$post['board'].'/'.$post['id'].'</a><br>' . $string;
}
- $body .= $replacement . '</div>';
+ $body .= $string . '</div>';
}
echo Element('page.html', array(