aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/isso/isso.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-11-28 18:24:15 +0100
committerArthurHoaro <arthur@hoa.ro>2016-12-12 03:03:12 +0100
commitd592daea8343bb4dfecff5d97e93699581ccc58c (patch)
treed508b902b3aba45795fafe16e0b921ac5ea7c4c4 /plugins/isso/isso.php
parentc3dfd8995921083ff7250c25d0b6ab1184b91aff (diff)
downloadShaarli-d592daea8343bb4dfecff5d97e93699581ccc58c.tar.gz
Shaarli-d592daea8343bb4dfecff5d97e93699581ccc58c.tar.zst
Shaarli-d592daea8343bb4dfecff5d97e93699581ccc58c.zip
Add a persistent 'shorturl' key to all links
All existing link will keep their permalinks. New links will have smallhash generated with date+id. The purpose of this is to avoid collision between links due to their creation date.
Diffstat (limited to 'plugins/isso/isso.php')
-rw-r--r--plugins/isso/isso.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/isso/isso.php b/plugins/isso/isso.php
index c44f3c09..ce16645f 100644
--- a/plugins/isso/isso.php
+++ b/plugins/isso/isso.php
@@ -43,9 +43,7 @@ function hook_isso_render_linklist($data, $conf)
43 $link = reset($data['links']); 43 $link = reset($data['links']);
44 $issoHtml = file_get_contents(PluginManager::$PLUGINS_PATH . '/isso/isso.html'); 44 $issoHtml = file_get_contents(PluginManager::$PLUGINS_PATH . '/isso/isso.html');
45 45
46 // FIXME! KO thread unique si même date 46 $isso = sprintf($issoHtml, $issoUrl, $issoUrl, $link['id'], $link['id']);
47 $linkDate = $link['created']->format('Ymd_His');
48 $isso = sprintf($issoHtml, $issoUrl, $issoUrl, $linkDate, $linkDate);
49 $data['plugin_end_zone'][] = $isso; 47 $data['plugin_end_zone'][] = $isso;
50 48
51 // Hackish way to include this CSS file only when necessary. 49 // Hackish way to include this CSS file only when necessary.