diff options
author | VirtualTam <virtualtam@flibidi.net> | 2019-04-16 00:24:30 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2019-04-16 00:24:30 +0200 |
commit | 1aa24ed8d2974cda98733f74b36844b02942cc11 (patch) | |
tree | da122008ee7562236cce6dcac28a4277f596efb5 | |
parent | af22c1ae3adb7a0705814bb7c4d75c9e2aa26a0e (diff) | |
parent | 1e77e0448bbd25675d8c0fe4a73206ad9048904b (diff) | |
download | Shaarli-1aa24ed8d2974cda98733f74b36844b02942cc11.tar.gz Shaarli-1aa24ed8d2974cda98733f74b36844b02942cc11.tar.zst Shaarli-1aa24ed8d2974cda98733f74b36844b02942cc11.zip |
Merge tag 'v0.10.4' into latest
Release v0.10.4
-rw-r--r-- | AUTHORS | 4 | ||||
-rw-r--r-- | CHANGELOG.md | 5 | ||||
-rw-r--r-- | application/LinkDB.php | 6 | ||||
-rw-r--r-- | application/Thumbnailer.php | 2 | ||||
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | shaarli_version.php | 2 |
6 files changed, 16 insertions, 5 deletions
@@ -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. | |||
4 | The format is based on [Keep a Changelog](http://keepachangelog.com/) | 4 | The format is based on [Keep a Changelog](http://keepachangelog.com/) |
5 | and this project adheres to [Semantic Versioning](http://semver.org/). | 5 | and 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( |
@@ -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 */ ?> | ||