Skip to content
Permalink
Browse files

Simplify further

  • Loading branch information...
Quy committed Apr 7, 2019
1 parent d2c0850 commit acf34436ec131a757f104b85aee3c47554ec0dbf
Showing with 2 additions and 13 deletions.
  1. +2 −13 viewforum.php
@@ -216,10 +216,8 @@
$item_status .= ' inew';
$icon_type = 'icon icon-new';
$subject = '<strong>'.$subject.'</strong>';
$subject_new_posts = ' <span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&amp;action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>';
$subject .= ' <span class="newtext">[ <a href="viewtopic.php?id='.$cur_topic['id'].'&amp;action=new" title="'.$lang_common['New posts info'].'">'.$lang_common['New posts'].'</a> ]</span>';
}
else
$subject_new_posts = null;
// Insert the status text before the subject
$subject = implode(' ', $status_text).' '.$subject;
@@ -237,16 +235,7 @@
$num_pages_topic = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']);
if ($num_pages_topic > 1)
$subject_multipage = ' <span class="pagestext">[ '.paginate($num_pages_topic, -1, 'viewtopic.php?id='.$cur_topic['id']).' ]</span>';
else
$subject_multipage = null;
// Should we show the "New posts" and/or the multipage links?
if (!empty($subject_new_posts))
$subject .= $subject_new_posts;
if (!empty($subject_multipage))
$subject .= $subject_multipage;
$subject .= ' <span class="pagestext">[ '.paginate($num_pages_topic, -1, 'viewtopic.php?id='.$cur_topic['id']).' ]</span>';
?>
<tr class="<?php echo $item_status ?>">

0 comments on commit acf3443

Please sign in to comment.
You can’t perform that action at this time.