aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--AUTHORS4
-rw-r--r--CHANGELOG.md5
-rw-r--r--application/LinkDB.php6
-rw-r--r--application/Thumbnailer.php2
-rw-r--r--index.php2
-rw-r--r--shaarli_version.php2
6 files changed, 16 insertions, 5 deletions
diff --git a/AUTHORS b/AUTHORS
index 8d06b930..f91a770e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,5 +1,5 @@
1 715 ArthurHoaro <arthur@hoa.ro> 1 716 ArthurHoaro <arthur@hoa.ro>
2 370 VirtualTam <virtualtam@flibidi.net> 2 372 VirtualTam <virtualtam@flibidi.net>
3 208 nodiscc <nodiscc@gmail.com> 3 208 nodiscc <nodiscc@gmail.com>
4 56 Sébastien Sauvage <sebsauvage@sebsauvage.net> 4 56 Sébastien Sauvage <sebsauvage@sebsauvage.net>
5 15 Florian Eula <eula.florian@gmail.com> 5 15 Florian Eula <eula.florian@gmail.com>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c4f77fa9..c08e42ee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4The format is based on [Keep a Changelog](http://keepachangelog.com/) 4The format is based on [Keep a Changelog](http://keepachangelog.com/)
5and this project adheres to [Semantic Versioning](http://semver.org/). 5and this project adheres to [Semantic Versioning](http://semver.org/).
6 6
7## [v0.10.4](https://github.com/shaarli/Shaarli/releases/tag/v0.10.4) - 2019-04-16
8
9### Fixed
10- Fix thumbnails disabling if PHP GD is not installed
11- Fix a warning if links sticky status isn't set
7 12
8## [v0.10.3](https://github.com/shaarli/Shaarli/releases/tag/v0.10.3) - 2019-02-23 13## [v0.10.3](https://github.com/shaarli/Shaarli/releases/tag/v0.10.3) - 2019-02-23
9### Added 14### Added
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
259 ), 259 ),
260 'private'=>0, 260 'private'=>0,
261 'created'=> new DateTime(), 261 'created'=> new DateTime(),
262 'tags'=>'opensource software' 262 'tags'=>'opensource software',
263 'sticky' => false,
263 ); 264 );
264 $link['shorturl'] = link_small_hash($link['created'], $link['id']); 265 $link['shorturl'] = link_small_hash($link['created'], $link['id']);
265 $this->links[1] = $link; 266 $this->links[1] = $link;
@@ -272,6 +273,7 @@ You use the community supported version of the original Shaarli project, by Seba
272 'private'=>1, 273 'private'=>1,
273 'created'=> new DateTime('1 minute ago'), 274 'created'=> new DateTime('1 minute ago'),
274 'tags'=>'secretstuff', 275 'tags'=>'secretstuff',
276 'sticky' => false,
275 ); 277 );
276 $link['shorturl'] = link_small_hash($link['created'], $link['id']); 278 $link['shorturl'] = link_small_hash($link['created'], $link['id']);
277 $this->links[0] = $link; 279 $this->links[0] = $link;
@@ -323,6 +325,8 @@ You use the community supported version of the original Shaarli project, by Seba
323 $link['real_url'] = $link['url']; 325 $link['real_url'] = $link['url'];
324 } 326 }
325 327
328 $link['sticky'] = isset($link['sticky']) ? $link['sticky'] : false;
329
326 // To be able to load links before running the update, and prepare the update 330 // To be able to load links before running the update, and prepare the update
327 if (! isset($link['created'])) { 331 if (! isset($link['created'])) {
328 $link['id'] = $link['linkdate']; 332 $link['id'] = $link['linkdate'];
diff --git a/application/Thumbnailer.php b/application/Thumbnailer.php
index 37ed97a1..167d6296 100644
--- a/application/Thumbnailer.php
+++ b/application/Thumbnailer.php
@@ -55,7 +55,7 @@ class Thumbnailer
55 $this->conf = $conf; 55 $this->conf = $conf;
56 56
57 if (! $this->checkRequirements()) { 57 if (! $this->checkRequirements()) {
58 $this->conf->set('thumbnails.enabled', false); 58 $this->conf->set('thumbnails.mode', Thumbnailer::MODE_NONE);
59 $this->conf->write(true); 59 $this->conf->write(true);
60 // TODO: create a proper error handling system able to catch exceptions... 60 // TODO: create a proper error handling system able to catch exceptions...
61 die(t( 61 die(t(
diff --git a/index.php b/index.php
index acfcc660..4deed197 100644
--- a/index.php
+++ b/index.php
@@ -1179,6 +1179,8 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
1179 $link['thumbnail'] = $thumbnailer->get($url); 1179 $link['thumbnail'] = $thumbnailer->get($url);
1180 } 1180 }
1181 1181
1182 $link['sticky'] = isset($link['sticky']) ? $link['sticky'] : false;
1183
1182 $pluginManager->executeHooks('save_link', $link); 1184 $pluginManager->executeHooks('save_link', $link);
1183 1185
1184 $LINKSDB[$id] = $link; 1186 $LINKSDB[$id] = $link;
diff --git a/shaarli_version.php b/shaarli_version.php
index 215fc76f..7db5053d 100644
--- a/shaarli_version.php
+++ b/shaarli_version.php
@@ -1 +1 @@
<?php /* 0.10.3 */ ?> <?php /* 0.10.4 */ ?>