parent
0923a2bc1b
commit
c68da3ffbf
1 changed files with 4 additions and 2 deletions
|
@ -1706,8 +1706,10 @@ function buildLinkList($PAGE,$LINKSDB)
|
||||||
*/
|
*/
|
||||||
$keys=array(); foreach($linksToDisplay as $key=>$value) { $keys[]=$key; } // Stupid and ugly. Thanks PHP.
|
$keys=array(); foreach($linksToDisplay as $key=>$value) { $keys[]=$key; } // Stupid and ugly. Thanks PHP.
|
||||||
|
|
||||||
// If there is only a single link, we change on-the-fly the title of the page.
|
// If it's a permalink, we change on-the-fly the title of the page.
|
||||||
if (count($linksToDisplay)==1) $GLOBALS['pagetitle'] = $linksToDisplay[$keys[0]]['title'].' - '.$GLOBALS['title'];
|
if(!empty($search_type && $search_type == 'permalink')) {
|
||||||
|
$GLOBALS['pagetitle'] = $linksToDisplay[$keys[0]]['title'] . ' - ' . $GLOBALS['title'];
|
||||||
|
}
|
||||||
|
|
||||||
// Select articles according to paging.
|
// Select articles according to paging.
|
||||||
$pagecount = ceil(count($keys)/$_SESSION['LINKS_PER_PAGE']);
|
$pagecount = ceil(count($keys)/$_SESSION['LINKS_PER_PAGE']);
|
||||||
|
|
Loading…
Reference in a new issue