Skip to content
Permalink
Browse files

Migrate crumbs to a function

  • Loading branch information...
Quy committed Feb 22, 2019
1 parent 5ffdada commit 34b20a8669e33301bf9bbd45341f7998ca3cb677
Showing with 7 additions and 7 deletions.
  1. +7 −7 edit.php
@@ -142,7 +142,12 @@
}
}
$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?id='.$cur_post['tid']),
$lang_post['Edit post'],
));
$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_post['Edit post']);
$required_fields = array('req_subject' => $lang_common['Subject'], 'req_message' => $lang_common['Message']);
@@ -155,12 +160,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?id=<?php echo $cur_post['tid'] ?>"><?php echo pun_htmlspecialchars($cur_post['subject']) ?></a></li>
<li><span&#160;</span><strong><?php echo $lang_post['Edit post'] ?></strong></li>
</ul>
<?php echo $crumbs ?>
</div>
</div>

0 comments on commit 34b20a8

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