diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1109,7 +1109,9 @@ function showDaily() | |||
1109 | // We pre-format some fields for proper output. | 1109 | // We pre-format some fields for proper output. |
1110 | foreach($linksToDisplay as $key=>$link) | 1110 | foreach($linksToDisplay as $key=>$link) |
1111 | { | 1111 | { |
1112 | $linksToDisplay[$key]['taglist']=explode(' ',$link['tags']); | 1112 | $taglist = explode(' ',$link['tags']); |
1113 | uasort($taglist, 'strcasecmp'); | ||
1114 | $linksToDisplay[$key]['taglist']=$taglist; | ||
1113 | $linksToDisplay[$key]['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))); | 1115 | $linksToDisplay[$key]['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))); |
1114 | $linksToDisplay[$key]['thumbnail'] = thumbnail($link['url']); | 1116 | $linksToDisplay[$key]['thumbnail'] = thumbnail($link['url']); |
1115 | } | 1117 | } |
@@ -1761,7 +1763,9 @@ function buildLinkList($PAGE,$LINKSDB) | |||
1761 | $classLi = $i%2!=0 ? '' : 'publicLinkHightLight'; | 1763 | $classLi = $i%2!=0 ? '' : 'publicLinkHightLight'; |
1762 | $link['class'] = ($link['private']==0 ? $classLi : 'private'); | 1764 | $link['class'] = ($link['private']==0 ? $classLi : 'private'); |
1763 | $link['localdate']=linkdate2locale($link['linkdate']); | 1765 | $link['localdate']=linkdate2locale($link['linkdate']); |
1764 | $link['taglist']=explode(' ',$link['tags']); | 1766 | $taglist = explode(' ',$link['tags']); |
1767 | uasort($taglist, 'strcasecmp'); | ||
1768 | $link['taglist']=$taglist; | ||
1765 | $linkDisp[$keys[$i]] = $link; | 1769 | $linkDisp[$keys[$i]] = $link; |
1766 | $i++; | 1770 | $i++; |
1767 | } | 1771 | } |