]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
update doc
[github/shaarli/Shaarli.git] / index.php
index eb7fd10328921323d6015b6f299e57b72ed4379a..83c507bbd64581800c664d6ff62eaa8271233651 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1943,13 +1943,11 @@ function buildLinkList($PAGE,$LINKSDB)
         $title               = $link['title'];
         $taglist             = explode(' ',$link['tags']);
         uasort($taglist, 'strcasecmp');
-
         $classLi             = $i%2!=0 ? '' : 'publicLinkHightLight'; // This could really be done with just a css pseudoclass.
-
-        $link['description'] = nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))));
-        $link['class']       = ($link['private']==0 ? $classLi : 'private');
-        $link['localdate']   = linkdate2locale($link['linkdate']);
-        $link['taglist']     = $taglist;
+        $link['description']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))));
+        $link['class'] = ($link['private']==0 ? $classLi : 'private');
+        $link['timestamp']=linkdate2timestamp($link['linkdate']);
+        $link['taglist']=$taglist;
 
         // Convert notes to absolute URLs
         if ($link["url"][0]      === '?' && // Check for both signs of a note: starting with ? and 7 chars long. I doubt that you'll post any links that look like this.
@@ -1958,7 +1956,6 @@ function buildLinkList($PAGE,$LINKSDB)
         }
 
         $linkDisp[$keys[$i]] = $link;
-
         $i++;
     }