SMF Development > Bug Reports
[5000] Bug in code tag
Akyhne:
--- Code: ---echo ' »';
--- End code ---
Akyhne:
--- Code: --- foreach ($context['linktree'] as $link_num => $tree)
{
if (isset($board_info['cat']) && $tree['name'] !== $board_info['cat']['name'] || !isset($board_info['cat']))
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';
echo '
</li>';
}
}
--- End code ---
Akyhne:
--- Code: --- foreach ($context['linktree'] as $link_num => $tree)
{
if (isset($board_info['cat']) && $tree['name'] !== $board_info['cat']['name'] || !isset($board_info['cat']))
{
echo '
<li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>';
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' »';
echo '
</li>';
}
}
--- End code ---
Akyhne:
Hmm, if you look at the code above, there's a difference. When posting the code example from quick reply, the part echo echo ' & # 1 8 7;'; gets replaced with echo ' ยป';
If you post from the reply window, it is saved as is.
I scream bug!
emanuele:
--- Code: ---echo ' »';
--- End code ---
quickreply
Navigation
[0] Message Index
[#] Next page
Go to full version