Skip to content
Permalink
Browse files

Migrate crumbs to a function

  • Loading branch information...
Quy committed Feb 22, 2019
1 parent 34b20a8 commit 325adb9c8921710d241b707b0843ade03e033a9f
Showing with 8 additions and 6 deletions.
  1. +8 −6 misc.php
@@ -275,6 +275,13 @@
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 +291,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 325adb9

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