punbb/index.php
changeset 4 eb9ed4c366d0
parent 2 a8a21e1c7afa
child 5 e3d7322305bf
equal deleted inserted replaced
3:c0c445d4a13e 4:eb9ed4c366d0
    95 		$icon_text = $lang_common['Redirect icon'];
    95 		$icon_text = $lang_common['Redirect icon'];
    96 		$icon_type = 'icon';
    96 		$icon_type = 'icon';
    97 	}
    97 	}
    98 	else
    98 	else
    99 	{
    99 	{
   100 		$forum_field = '<h3><a href="viewforum.php?id='.$cur_forum['fid'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></h3>';
   100 		$forum_field = '<h3><a href="' . makeUrlNS('Special', 'Forum/ViewForum', 'id='.$cur_forum['fid'], true) . '">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></h3>';
   101 		$num_topics = $cur_forum['num_topics'];
   101 		$num_topics = $cur_forum['num_topics'];
   102 		$num_posts = $cur_forum['num_posts'];
   102 		$num_posts = $cur_forum['num_posts'];
   103 	}
   103 	}
   104 
   104 
   105 	if ($cur_forum['forum_desc'] != '')
   105 	if ($cur_forum['forum_desc'] != '')
   106 		$forum_field .= "\n\t\t\t\t\t\t\t\t".$cur_forum['forum_desc'];
   106 		$forum_field .= "\n\t\t\t\t\t\t\t\t".$cur_forum['forum_desc'];
   107 
   107 
   108 
   108 
   109 	// If there is a last_post/last_poster.
   109 	// If there is a last_post/last_poster.
   110 	if ($cur_forum['last_post'] != '')
   110 	if ($cur_forum['last_post'] != '')
   111 		$last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';
   111 		$last_post = '<a href="' . makeUrlNS('Special', 'Forum/ViewTopic', 'pid='.$cur_forum['last_post_id'], true) . '#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';
   112 	else
   112 	else
   113 		$last_post = '&nbsp;';
   113 		$last_post = '&nbsp;';
   114 
   114 
   115 	if ($cur_forum['moderators'] != '')
   115 	if ($cur_forum['moderators'] != '')
   116 	{
   116 	{