Permalink
Browse files

Migrate to crumbs function

  • Loading branch information...
Quy committed Feb 3, 2019
1 parent 9e299c0 commit 05b9384877dfd030e1e6d9313de55752abe8fad8
Showing with 7 additions and 6 deletions.
  1. +7 −6 misc.php
@@ -275,6 +275,12 @@
if ($pun_config['o_censoring'] == '1')
$cur_post['subject'] = censor_words($cur_post['subject']);
$crumbs = generate_crumbs(array(
array($lang_common['Index'], 'index.php'),
array(pun_htmlspecialchars($cur_post['forum_name']), 'viewforum.php?id='.$cur_post['fid']),
array(pun_htmlspecialchars($cur_post['subject']), 'viewtopic.php?pid='.$post_id.'#p'.$post_id),
$lang_misc['Report post']));
$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_misc['Report post']);
$required_fields = array('req_reason' => $lang_misc['Reason']);
$focus_element = array('report', 'req_reason');
@@ -284,12 +290,7 @@
?>
<div class="linkst">
<div class="inbox">
<ul class="crumbs">
<li><a href="index.php"><?php echo $lang_common['Index'] ?></a></li>
<li><span&#160;</span><a href="viewforum.php?id=<?php echo $cur_post['fid'] ?>"><?php echo pun_htmlspecialchars($cur_post['forum_name']) ?></a></li>
<li><span&#160;</span><a href="viewtopic.php?pid=<?php echo $post_id ?>#p<?php echo $post_id ?>"><?php echo pun_htmlspecialchars($cur_post['subject']) ?></a></li>
<li><span&#160;</span><strong><?php echo $lang_misc['Report post'] ?></strong></li>
</ul>
<?php echo $crumbs ?>
</div>
</div>

0 comments on commit 05b9384

Please sign in to comment.