diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-11-28 16:16:44 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-12-12 03:03:12 +0100 |
commit | 01878a75b93b9966f7366ea2937c118bbc3e459e (patch) | |
tree | 92286b70b4dd67a1bbd8d030fac6c0a70f64ded0 /plugins/isso | |
parent | 1dc37f9cf8397e6050c4d5d981da263e6333a849 (diff) | |
download | Shaarli-01878a75b93b9966f7366ea2937c118bbc3e459e.tar.gz Shaarli-01878a75b93b9966f7366ea2937c118bbc3e459e.tar.zst Shaarli-01878a75b93b9966f7366ea2937c118bbc3e459e.zip |
Apply the new ID system accros the whole codebase
Diffstat (limited to 'plugins/isso')
-rw-r--r-- | plugins/isso/isso.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/isso/isso.php b/plugins/isso/isso.php index ffb7cfac..c44f3c09 100644 --- a/plugins/isso/isso.php +++ b/plugins/isso/isso.php | |||
@@ -41,9 +41,11 @@ function hook_isso_render_linklist($data, $conf) | |||
41 | // Only display comments for permalinks. | 41 | // Only display comments for permalinks. |
42 | if (count($data['links']) == 1 && empty($data['search_tags']) && empty($data['search_term'])) { | 42 | if (count($data['links']) == 1 && empty($data['search_tags']) && empty($data['search_term'])) { |
43 | $link = reset($data['links']); | 43 | $link = reset($data['links']); |
44 | $isso_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/isso/isso.html'); | 44 | $issoHtml = file_get_contents(PluginManager::$PLUGINS_PATH . '/isso/isso.html'); |
45 | 45 | ||
46 | $isso = sprintf($isso_html, $issoUrl, $issoUrl, $link['linkdate'], $link['linkdate']); | 46 | // FIXME! KO thread unique si même date |
47 | $linkDate = $link['created']->format('Ymd_His'); | ||
48 | $isso = sprintf($issoHtml, $issoUrl, $issoUrl, $linkDate, $linkDate); | ||
47 | $data['plugin_end_zone'][] = $isso; | 49 | $data['plugin_end_zone'][] = $isso; |
48 | 50 | ||
49 | // Hackish way to include this CSS file only when necessary. | 51 | // Hackish way to include this CSS file only when necessary. |