From d592daea8343bb4dfecff5d97e93699581ccc58c Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 28 Nov 2016 18:24:15 +0100 Subject: 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. --- plugins/isso/isso.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/isso/isso.php') 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) $link = reset($data['links']); $issoHtml = file_get_contents(PluginManager::$PLUGINS_PATH . '/isso/isso.html'); - // FIXME! KO thread unique si même date - $linkDate = $link['created']->format('Ymd_His'); - $isso = sprintf($issoHtml, $issoUrl, $issoUrl, $linkDate, $linkDate); + $isso = sprintf($issoHtml, $issoUrl, $issoUrl, $link['id'], $link['id']); $data['plugin_end_zone'][] = $isso; // Hackish way to include this CSS file only when necessary. -- cgit v1.2.3