[svn r16528] fix a bug when we call Main Page from back links

skala
Juan Carlos Raña 17 years ago
parent c074037dd0
commit 90a839ed25
  1. 13
      main/wiki/index.php

@ -925,13 +925,20 @@ if ($_GET['action']=='links')
$ShowAssignment='<img src="../img/wiki/trans.gif" />'; $ShowAssignment='<img src="../img/wiki/trans.gif" />';
} }
//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.'<a href="'.$_SERVER['PHP_SELF'].'?cidReq='.$_course[id].'&action=showpage&title='.$page.'&group_id='.Security::remove_XSS($_GET['group_id']).'">'.$row['title'].'</a>';
//fix index to title Main page into linksto
if ($page=='index') if ($page=='index')
{ {
$page=str_replace(' ','_',get_lang('DefaultTitle')); $page=str_replace(' ','_',get_lang('DefaultTitle'));
} }
echo $LinksPagesFrom.': '.$ShowAssignment.'<a href="'.$_SERVER['PHP_SELF'].'?cidReq='.$_course[id].'&action=showpage&title='.$page.'&group_id='.Security::remove_XSS($_GET['group_id']).'">'.$row['title'].'</a>';
//table //table

Loading…
Cancel
Save