Skip to content
Browse files

Migrate crumbs to a function

  • Loading branch information...
Quy committed Feb 22, 2019
1 parent 25100e6 commit 5ffdada89b612be30b822e7bdcbc6745b5bc93b0
Showing with 7 additions and 6 deletions.
  1. +7 −6 delete.php
@@ -78,6 +78,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?pid='.$id.'#p'.$id),
$lang_delete['Delete post'],
$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_delete['Delete post']);
define ('PUN_ACTIVE_PAGE', 'index');
@@ -89,12 +95,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 $id ?>#p<?php echo $id ?>"><?php echo pun_htmlspecialchars($cur_post['subject']) ?></a></li>
<li><span&#160;</span><strong><?php echo $lang_delete['Delete post'] ?></strong></li>
<?php echo $crumbs ?>

0 comments on commit 5ffdada

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