Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/getgrav/grav into 2.0
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
  • Loading branch information
mahagr committed Jul 18, 2017
2 parents a59fc7b + bbc4a23 commit 0cde375
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ env:
- GOPATH="$HOME/go"
- PATH="$GOPATH/bin:$PATH"
# GH_TOKEN [API Key]
- secure: "jS+c+g2v33vypG4VtqiSDW2qQ4dGJZlrUKBRCztoy1yrOrYRPvc5Vzi/AS3fDmZ4yizukEwmUNNzyZQcgFvLPpmCCml46Dovp8R9OXhbNe8OnULmaSn2Zkr71oblMYu6ZP+RpYvNq0BIdSB3u2TiFriHMiTIkX9UwZNaUCOX1ig="
- secure: "NR9pV7YteY9OoPmjDTQG0fDfocVu+tCeiDH1F2GFhXCu71UOIvqWXpOxp0RHkG5GIXdCFHx59yu+ZO275lbaHkbF8+4lVSVrV4RcGn+pIncvxr6iZCVW05dbAxV3H8alK+xYJRGmbyfQl5wIM49WvmuGHZjcmIloS4t/omQ3N+I="
# BB_TOKEN value => "user:pass@"
- secure: "einUtSEkUWy2IrqLXyVjwUU+mwaaoiOXRRVdLBpA3Zye6bZx8cm5h/5AplkPWhM/NmCJoW/MwNZHHkFhlr3mDRov5iOxVmTTYfnXB+I5lxYTSgduOLLErS7mU8hfADpVDU8bHNU44fNGD3UEiG1PD4qQBX4DMlqIFmR20mjs81k="
# GH_API_USER [for curl]
Expand Down
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,22 @@
1. [](#improved)
* Make it possible to include debug bar also into non-HTML responses

# v1.3.1
## 07/xx/2017

1. [](#bugfix)
* Check if medium thumbnail exists before resetting

# v1.3.0
## 07/16/2017

1. [](#bugfix)
* Fixed an undefined variable `$difference` [#1563](https://github.com/getgrav/grav/pull/1563)
* Fix broken range slider [grav-plugin-admin#1153](https://github.com/getgrav/grav-plugin-admin/issues/1153)
* Fix natural sort when > 100 pages [#1564](https://github.com/getgrav/grav/pull/1564)

# v1.3.0-rc.5
## xx/xx/2017
## 07/05/2017

1. [](#new)
* Setting `system.session.timeout` to 0 clears the session when the browser session ends [#1538](https://github.com/getgrav/grav/pull/1538)
Expand Down
1 change: 0 additions & 1 deletion system/blueprints/config/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,6 @@ form:
append: '%'
label: PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY
help: PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY_HELP
classes: x-small
validate:
min: 1
max: 100
Expand Down
4 changes: 2 additions & 2 deletions system/defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

// Some standard defines
define('GRAV', true);
define('GRAV_VERSION', '1.3.0-rc.4');
define('GRAV_TESTING', true);
define('GRAV_VERSION', '1.3.0');
//define('GRAV_TESTING', true);
define('DS', '/');

if (!defined('GRAV_PHP_MIN')) {
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Page/Medium/Medium.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public function display($mode = 'source')

$this->mode = $mode;

return $mode === 'thumbnail' ? $this->getThumbnail()->reset() : $this->reset();
return $mode === 'thumbnail' ? ($this->getThumbnail() ? $this->getThumbnail()->reset() : null) : $this->reset();
}

/**
Expand Down
6 changes: 6 additions & 0 deletions system/src/Grav/Common/Page/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,12 @@ protected function buildSort($path, array $pages, $order_by = 'default', $manual
$locale = setlocale(LC_COLLATE, 0); //`setlocale` with a 0 param returns the current locale set
$col = Collator::create($locale);
if ($col) {
if (($sort_flags & SORT_NATURAL) === SORT_NATURAL) {
$list = preg_replace_callback('~([0-9]+)\.~', function($number) {
return sprintf('%032d.', $number[0]);
}, $list);
}

$col->asort($list, $sort_flags);
} else {
asort($list, $sort_flags);
Expand Down
1 change: 1 addition & 0 deletions system/src/Grav/Common/Twig/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ public function nicetimeFilter($date, $long_strings = true)
$tense = $this->grav['language']->translate('NICETIME.AGO', null, true);

} else if ($now == $unix_date) {
$difference = $now - $unix_date;
$tense = $this->grav['language']->translate('NICETIME.JUST_NOW', null, false);

} else {
Expand Down
2 changes: 1 addition & 1 deletion user/config/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ debugger:
shutdown:
close_connection: true
gpm:
releases: testing
releases: stable
verify_peer: true

0 comments on commit 0cde375

Please sign in to comment.