aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2016-12-15 11:58:39 +0100
committerGitHub <noreply@github.com>2016-12-15 11:58:39 +0100
commit1022c59df8ff5c67c1c3191b035985f4037ea9cf (patch)
treee631e92f3c4ce391033c7ee2ba7264ad3e67437f
parent3cc8c898307ad53507a128db2b11238be2641c32 (diff)
parent455f776a3d0f9132e5a94160b5634111d44cade4 (diff)
downloadShaarli-1022c59df8ff5c67c1c3191b035985f4037ea9cf.tar.gz
Shaarli-1022c59df8ff5c67c1c3191b035985f4037ea9cf.tar.zst
Shaarli-1022c59df8ff5c67c1c3191b035985f4037ea9cf.zip
Merge pull request #717 from ArthurHoaro/v0.8v0.8.2
Preparation of v0.8.2
-rw-r--r--CHANGELOG.md5
-rw-r--r--index.php8
-rw-r--r--shaarli_version.php2
3 files changed, 11 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 21d5436c..d3157d5b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13 13
14### Fixed 14### Fixed
15 15
16## [v0.8.2](https://github.com/shaarli/Shaarli/releases/tag/v0.8.2) - 2016-12-15
17
18### Fixed
19
20- Editing a link created before the new ID system would change its permalink.
16 21
17## [v0.8.1](https://github.com/shaarli/Shaarli/releases/tag/v0.8.1) - 2016-12-12 22## [v0.8.1](https://github.com/shaarli/Shaarli/releases/tag/v0.8.1) - 2016-12-12
18 23
diff --git a/index.php b/index.php
index cc448352..62bdffd5 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
1<?php 1<?php
2/** 2/**
3 * Shaarli v0.8.1 - Shaare your links... 3 * Shaarli v0.8.2 - Shaare your links...
4 * 4 *
5 * The personal, minimalist, super-fast, database free, bookmarking service. 5 * The personal, minimalist, super-fast, database free, bookmarking service.
6 * 6 *
@@ -25,7 +25,7 @@ if (date_default_timezone_get() == '') {
25/* 25/*
26 * PHP configuration 26 * PHP configuration
27 */ 27 */
28define('shaarli_version', '0.8.1'); 28define('shaarli_version', '0.8.2');
29 29
30// http://server.com/x/shaarli --> /shaarli/ 30// http://server.com/x/shaarli --> /shaarli/
31define('WEB_PATH', substr($_SERVER['REQUEST_URI'], 0, 1+strrpos($_SERVER['REQUEST_URI'], '/', 0))); 31define('WEB_PATH', substr($_SERVER['REQUEST_URI'], 0, 1+strrpos($_SERVER['REQUEST_URI'], '/', 0)));
@@ -1249,10 +1249,12 @@ function renderPage($conf, $pluginManager)
1249 // Edit 1249 // Edit
1250 $created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate); 1250 $created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate);
1251 $updated = new DateTime(); 1251 $updated = new DateTime();
1252 $shortUrl = $LINKSDB[$id]['shorturl'];
1252 } else { 1253 } else {
1253 // New link 1254 // New link
1254 $created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate); 1255 $created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate);
1255 $updated = null; 1256 $updated = null;
1257 $shortUrl = link_small_hash($created, $id);
1256 } 1258 }
1257 1259
1258 // Remove multiple spaces. 1260 // Remove multiple spaces.
@@ -1279,7 +1281,7 @@ function renderPage($conf, $pluginManager)
1279 'created' => $created, 1281 'created' => $created,
1280 'updated' => $updated, 1282 'updated' => $updated,
1281 'tags' => str_replace(',', ' ', $tags), 1283 'tags' => str_replace(',', ' ', $tags),
1282 'shorturl' => link_small_hash($created, $id), 1284 'shorturl' => $shortUrl,
1283 ); 1285 );
1284 1286
1285 // If title is empty, use the URL as title. 1287 // If title is empty, use the URL as title.
diff --git a/shaarli_version.php b/shaarli_version.php
index 431387bb..e93b0e7f 100644
--- a/shaarli_version.php
+++ b/shaarli_version.php
@@ -1 +1 @@
<?php /* 0.8.1 */ ?> <?php /* 0.8.2 */ ?>