From 1778d95793e4bc5d494ece84ec177b5629c830f3 Mon Sep 17 00:00:00 2001 From: lsces Date: Fri, 17 Apr 2026 11:29:43 +0100 Subject: Tweaks to allow backlinks listing to work. Using to check the backlinks option on the wiki pages, but extending to blogs may be useful. --- backlinks.php | 1 + templates/backlinks.tpl | 6 +++--- 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}
-

{tr}Backlinks to{/tr} {$page}

+

{tr}Backlinks to{/tr} {$page}

    - {foreach from=$backlinks key=page_id item=title} -
  • {$title}
  • + {foreach from=$backlinks key=content_id item=title} +
  • {$title.title}
  • {foreachelse}
    {tr}No backlinks to this page{/tr}
    {/foreach} -- cgit v1.3