diff options
-rw-r--r-- | index.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1706,8 +1706,10 @@ function buildLinkList($PAGE,$LINKSDB) | |||
1706 | */ | 1706 | */ |
1707 | $keys=array(); foreach($linksToDisplay as $key=>$value) { $keys[]=$key; } // Stupid and ugly. Thanks PHP. | 1707 | $keys=array(); foreach($linksToDisplay as $key=>$value) { $keys[]=$key; } // Stupid and ugly. Thanks PHP. |
1708 | 1708 | ||
1709 | // If there is only a single link, we change on-the-fly the title of the page. | 1709 | // If it's a permalink, we change on-the-fly the title of the page. |
1710 | if (count($linksToDisplay)==1) $GLOBALS['pagetitle'] = $linksToDisplay[$keys[0]]['title'].' - '.$GLOBALS['title']; | 1710 | if(!empty($search_type && $search_type == 'permalink')) { |
1711 | $GLOBALS['pagetitle'] = $linksToDisplay[$keys[0]]['title'] . ' - ' . $GLOBALS['title']; | ||
1712 | } | ||
1711 | 1713 | ||
1712 | // Select articles according to paging. | 1714 | // Select articles according to paging. |
1713 | $pagecount = ceil(count($keys)/$_SESSION['LINKS_PER_PAGE']); | 1715 | $pagecount = ceil(count($keys)/$_SESSION['LINKS_PER_PAGE']); |