Browse Source

fixed link back from discussion page if coming from root page

master
Anika Henke 11 years ago
parent
commit
5afd56eb17
  1. 2
      tpl_functions.php

2
tpl_functions.php

@ -22,7 +22,7 @@ function _tpl_discussion($discussionPage, $title, $backTitle, $link=0, $wrapper=
$discussPage = str_replace('@ID@', $ID, $discussionPage); $discussPage = str_replace('@ID@', $ID, $discussionPage);
$discussPageRaw = str_replace('@ID@', '', $discussionPage); $discussPageRaw = str_replace('@ID@', '', $discussionPage);
$isDiscussPage = strpos($ID, $discussPageRaw) !== false; $isDiscussPage = strpos($ID, $discussPageRaw) !== false;
$backID = str_replace($discussPageRaw, '', $ID);
$backID = ':'.str_replace($discussPageRaw, '', $ID);
if ($wrapper) echo "<$wrapper>"; if ($wrapper) echo "<$wrapper>";

Loading…
Cancel
Save