aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils/ReferenceLinkDB.php
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2016-10-12 14:51:37 +0200
committerGitHub <noreply@github.com>2016-10-12 14:51:37 +0200
commit03542572665bae57705a2f57b0737ed43f4f1415 (patch)
treeed4f096826babda6ad25eba4951a6a76cbad2a34 /tests/utils/ReferenceLinkDB.php
parentadcdac1dec45090e2fa1cd4a340e91a40c7a205f (diff)
parentc6d876bb2afe7e9ec1a64c74e766360e2fa441e0 (diff)
downloadShaarli-03542572665bae57705a2f57b0737ed43f4f1415.tar.gz
Shaarli-03542572665bae57705a2f57b0737ed43f4f1415.tar.zst
Shaarli-03542572665bae57705a2f57b0737ed43f4f1415.zip
Merge pull request #622 from ArthurHoaro/update-date
Save link update dates and render it in templates and feeds
Diffstat (limited to 'tests/utils/ReferenceLinkDB.php')
-rw-r--r--tests/utils/ReferenceLinkDB.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php
index fcc7a4f9..937961c8 100644
--- a/tests/utils/ReferenceLinkDB.php
+++ b/tests/utils/ReferenceLinkDB.php
@@ -30,7 +30,8 @@ class ReferenceLinkDB
30 'Richard Stallman and the Free Software Revolution. Read this. #hashtag', 30 'Richard Stallman and the Free Software Revolution. Read this. #hashtag',
31 0, 31 0,
32 '20150310_114633', 32 '20150310_114633',
33 'free gnu software stallman -exclude stuff hashtag' 33 'free gnu software stallman -exclude stuff hashtag',
34 '20160803_093033'
34 ); 35 );
35 36
36 $this->addLink( 37 $this->addLink(
@@ -82,7 +83,7 @@ class ReferenceLinkDB
82 /** 83 /**
83 * Adds a new link 84 * Adds a new link
84 */ 85 */
85 protected function addLink($title, $url, $description, $private, $date, $tags) 86 protected function addLink($title, $url, $description, $private, $date, $tags, $updated = '')
86 { 87 {
87 $link = array( 88 $link = array(
88 'title' => $title, 89 'title' => $title,
@@ -91,6 +92,7 @@ class ReferenceLinkDB
91 'private' => $private, 92 'private' => $private,
92 'linkdate' => $date, 93 'linkdate' => $date,
93 'tags' => $tags, 94 'tags' => $tags,
95 'updated' => $updated,
94 ); 96 );
95 $this->_links[$date] = $link; 97 $this->_links[$date] = $link;
96 98