X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FLinkDB.php;fp=application%2FLinkDB.php;h=803757cae5c02c1fffed2f5257b57ff798ef5a07;hb=1cc5eaf9dee0e71aefbce1ff0f28c86ff320c053;hp=4bbc2950e223ab86817cd8fa63c74a866bc7db03;hpb=0ed9396bfa12f086369b52cdc0742e3fe72273ec;p=github%2Fshaarli%2FShaarli.git diff --git a/application/LinkDB.php b/application/LinkDB.php index 4bbc2950..803757ca 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -259,7 +259,8 @@ You use the community supported version of the original Shaarli project, by Seba ), 'private'=>0, 'created'=> new DateTime(), - 'tags'=>'opensource software' + 'tags'=>'opensource software', + 'sticky' => false, ); $link['shorturl'] = link_small_hash($link['created'], $link['id']); $this->links[1] = $link; @@ -272,6 +273,7 @@ You use the community supported version of the original Shaarli project, by Seba 'private'=>1, 'created'=> new DateTime('1 minute ago'), 'tags'=>'secretstuff', + 'sticky' => false, ); $link['shorturl'] = link_small_hash($link['created'], $link['id']); $this->links[0] = $link; @@ -323,6 +325,8 @@ You use the community supported version of the original Shaarli project, by Seba $link['real_url'] = $link['url']; } + $link['sticky'] = isset($link['sticky']) ? $link['sticky'] : false; + // To be able to load links before running the update, and prepare the update if (! isset($link['created'])) { $link['id'] = $link['linkdate'];