diff options
Diffstat (limited to 'application/bookmark/LinkDB.php')
-rw-r--r-- | application/bookmark/LinkDB.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/application/bookmark/LinkDB.php b/application/bookmark/LinkDB.php index c13a1141..41d5591f 100644 --- a/application/bookmark/LinkDB.php +++ b/application/bookmark/LinkDB.php | |||
@@ -271,7 +271,8 @@ You use the community supported version of the original Shaarli project, by Seba | |||
271 | ), | 271 | ), |
272 | 'private' => 0, | 272 | 'private' => 0, |
273 | 'created' => new DateTime(), | 273 | 'created' => new DateTime(), |
274 | 'tags' => 'opensource software' | 274 | 'tags' => 'opensource software', |
275 | 'sticky' => false, | ||
275 | ); | 276 | ); |
276 | $link['shorturl'] = link_small_hash($link['created'], $link['id']); | 277 | $link['shorturl'] = link_small_hash($link['created'], $link['id']); |
277 | $this->links[1] = $link; | 278 | $this->links[1] = $link; |
@@ -284,6 +285,7 @@ You use the community supported version of the original Shaarli project, by Seba | |||
284 | 'private' => 1, | 285 | 'private' => 1, |
285 | 'created' => new DateTime('1 minute ago'), | 286 | 'created' => new DateTime('1 minute ago'), |
286 | 'tags' => 'secretstuff', | 287 | 'tags' => 'secretstuff', |
288 | 'sticky' => false, | ||
287 | ); | 289 | ); |
288 | $link['shorturl'] = link_small_hash($link['created'], $link['id']); | 290 | $link['shorturl'] = link_small_hash($link['created'], $link['id']); |
289 | $this->links[0] = $link; | 291 | $this->links[0] = $link; |
@@ -335,6 +337,8 @@ You use the community supported version of the original Shaarli project, by Seba | |||
335 | $link['real_url'] = $link['url']; | 337 | $link['real_url'] = $link['url']; |
336 | } | 338 | } |
337 | 339 | ||
340 | $link['sticky'] = isset($link['sticky']) ? $link['sticky'] : false; | ||
341 | |||
338 | // To be able to load links before running the update, and prepare the update | 342 | // To be able to load links before running the update, and prepare the update |
339 | if (!isset($link['created'])) { | 343 | if (!isset($link['created'])) { |
340 | $link['id'] = $link['linkdate']; | 344 | $link['id'] = $link['linkdate']; |