From 90a839ed25b878799369a3e32e4b59fa9dc7e6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Wed, 15 Oct 2008 00:12:59 +0200 Subject: [PATCH] [svn r16528] fix a bug when we call Main Page from back links --- main/wiki/index.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main/wiki/index.php b/main/wiki/index.php index 36cdbc1a19..0c767f2668 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -925,13 +925,20 @@ if ($_GET['action']=='links') $ShowAssignment=''; } - //fix index to reflink Main page (see linksto) + //fix Title to reflink (link Main Page) + + if ($page==get_lang('DefaultTitle')) + { + $page='index'; + } + + echo $LinksPagesFrom.': '.$ShowAssignment.''.$row['title'].''; + + //fix index to title Main page into linksto if ($page=='index') { $page=str_replace(' ','_',get_lang('DefaultTitle')); } - - echo $LinksPagesFrom.': '.$ShowAssignment.''.$row['title'].''; //table