Merge pull request #717 from ArthurHoaro/v0.8

Preparation of v0.8.2
This commit is contained in:
Arthur 2016-12-15 11:58:39 +01:00 committed by GitHub
commit 1022c59df8
3 changed files with 11 additions and 4 deletions

View file

@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
## [v0.8.2](https://github.com/shaarli/Shaarli/releases/tag/v0.8.2) - 2016-12-15
### Fixed
- Editing a link created before the new ID system would change its permalink.
## [v0.8.1](https://github.com/shaarli/Shaarli/releases/tag/v0.8.1) - 2016-12-12

View file

@ -1,6 +1,6 @@
<?php
/**
* Shaarli v0.8.1 - Shaare your links...
* Shaarli v0.8.2 - Shaare your links...
*
* The personal, minimalist, super-fast, database free, bookmarking service.
*
@ -25,7 +25,7 @@ if (date_default_timezone_get() == '') {
/*
* PHP configuration
*/
define('shaarli_version', '0.8.1');
define('shaarli_version', '0.8.2');
// http://server.com/x/shaarli --> /shaarli/
define('WEB_PATH', substr($_SERVER['REQUEST_URI'], 0, 1+strrpos($_SERVER['REQUEST_URI'], '/', 0)));
@ -1249,10 +1249,12 @@ function renderPage($conf, $pluginManager)
// Edit
$created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate);
$updated = new DateTime();
$shortUrl = $LINKSDB[$id]['shorturl'];
} else {
// New link
$created = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $linkdate);
$updated = null;
$shortUrl = link_small_hash($created, $id);
}
// Remove multiple spaces.
@ -1279,7 +1281,7 @@ function renderPage($conf, $pluginManager)
'created' => $created,
'updated' => $updated,
'tags' => str_replace(',', ' ', $tags),
'shorturl' => link_small_hash($created, $id),
'shorturl' => $shortUrl,
);
// If title is empty, use the URL as title.

View file

@ -1 +1 @@
<?php /* 0.8.1 */ ?>
<?php /* 0.8.2 */ ?>