aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/bookmark/LinkDB.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/bookmark/LinkDB.php')
-rw-r--r--application/bookmark/LinkDB.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/bookmark/LinkDB.php b/application/bookmark/LinkDB.php
index 266632e3..efde8468 100644
--- a/application/bookmark/LinkDB.php
+++ b/application/bookmark/LinkDB.php
@@ -252,7 +252,8 @@ You use the community supported version of the original Shaarli project, by Seba
252 ), 252 ),
253 'private' => 0, 253 'private' => 0,
254 'created' => new DateTime(), 254 'created' => new DateTime(),
255 'tags' => 'opensource software' 255 'tags' => 'opensource software',
256 'sticky' => false,
256 ); 257 );
257 $link['shorturl'] = link_small_hash($link['created'], $link['id']); 258 $link['shorturl'] = link_small_hash($link['created'], $link['id']);
258 $this->links[1] = $link; 259 $this->links[1] = $link;
@@ -265,6 +266,7 @@ You use the community supported version of the original Shaarli project, by Seba
265 'private' => 1, 266 'private' => 1,
266 'created' => new DateTime('1 minute ago'), 267 'created' => new DateTime('1 minute ago'),
267 'tags' => 'secretstuff', 268 'tags' => 'secretstuff',
269 'sticky' => false,
268 ); 270 );
269 $link['shorturl'] = link_small_hash($link['created'], $link['id']); 271 $link['shorturl'] = link_small_hash($link['created'], $link['id']);
270 $this->links[0] = $link; 272 $this->links[0] = $link;
@@ -306,6 +308,8 @@ You use the community supported version of the original Shaarli project, by Seba
306 308
307 $link['real_url'] = $link['url']; 309 $link['real_url'] = $link['url'];
308 310
311 $link['sticky'] = isset($link['sticky']) ? $link['sticky'] : false;
312
309 // To be able to load links before running the update, and prepare the update 313 // To be able to load links before running the update, and prepare the update
310 if (!isset($link['created'])) { 314 if (!isset($link['created'])) {
311 $link['id'] = $link['linkdate']; 315 $link['id'] = $link['linkdate'];