summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbacklinks.php1
-rwxr-xr-xtemplates/backlinks.tpl6
2 files changed, 4 insertions, 3 deletions
diff --git a/backlinks.php b/backlinks.php
index e4c3578..864c75f 100755
--- a/backlinks.php
+++ b/backlinks.php
@@ -31,6 +31,7 @@ if( !$gContent->pageExists( $gContent->mPageName )) {
} else {
$_REQUEST["page"] = $gContent->mPageName;
$gBitSmarty->assign('page', $_REQUEST["page"]);
+ $gBitSmarty->assign('page_id', $_REQUEST["page_id"]);
}
// Get the backlinks for the page "page"
diff --git a/templates/backlinks.tpl b/templates/backlinks.tpl
index b9b7461..14a2225 100755
--- a/templates/backlinks.tpl
+++ b/templates/backlinks.tpl
@@ -1,13 +1,13 @@
{strip}
<div class="listing wiki">
<div class="header">
- <h1>{tr}Backlinks to{/tr} <a href="{$smarty.const.WIKI_PKG_URL}index.php?page_id={$pageInfo.page_id}" class="wiki">{$page}</a></h1>
+ <h1>{tr}Backlinks to{/tr} <a href="{$smarty.const.WIKI_PKG_URL}index.php?page_id={$page_id}" class="wiki">{$page}</a></h1>
</div>
<div class="body">
<ul>
- {foreach from=$backlinks key=page_id item=title}
- <li><a href="{$smarty.const.WIKI_PKG_URL}index.php?page_id={$page_id}" class="wiki">{$title}</a></li>
+ {foreach from=$backlinks key=content_id item=title}
+ <li><a href="{$smarty.const.WIKI_PKG_URL}index.php?content_id={$content_id}" class="wiki">{$title.title}</a></li>
{foreachelse}
<div class="norecords">{tr}No backlinks to this page{/tr}</div>
{/foreach}