Permalink
Browse files

Migrate to crumbs function

  • Loading branch information...
Quy committed Feb 3, 2019
1 parent 8188bd9 commit 9e299c0626e9319fa84ada65991bd4f4dbb6c1c7
Showing with 6 additions and 7 deletions.
  1. +6 −7 edit.php
@@ -142,7 +142,11 @@
}
}
$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 +159,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 9e299c0

Please sign in to comment.