diff --git a/.travis.yml b/.travis.yml index 56943a340a..7c543eac51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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] diff --git a/CHANGELOG.md b/CHANGELOG.md index 83938af6eb..eefb41e0e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.3.1 +## 07/19/2017 + +1. [](#bugfix) + * Fix ordering for Linux + International environments [#1574](https://github.com/getgrav/grav/issues/1574) + * Check if medium thumbnail exists before resetting + * Update Travis' auth token + # v1.3.0 ## 07/16/2017 diff --git a/system/defines.php b/system/defines.php index f014a65b91..1665c4beca 100644 --- a/system/defines.php +++ b/system/defines.php @@ -8,7 +8,7 @@ // Some standard defines define('GRAV', true); -define('GRAV_VERSION', '1.3.0'); +define('GRAV_VERSION', '1.3.1'); //define('GRAV_TESTING', true); define('DS', '/'); diff --git a/system/src/Grav/Common/Page/Medium/Medium.php b/system/src/Grav/Common/Page/Medium/Medium.php index d63f12ed71..e817375b98 100644 --- a/system/src/Grav/Common/Page/Medium/Medium.php +++ b/system/src/Grav/Common/Page/Medium/Medium.php @@ -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(); } /** diff --git a/system/src/Grav/Common/Page/Pages.php b/system/src/Grav/Common/Page/Pages.php index 3d9762684a..08f96fd17f 100644 --- a/system/src/Grav/Common/Page/Pages.php +++ b/system/src/Grav/Common/Page/Pages.php @@ -1259,7 +1259,7 @@ protected function buildSort($path, array $pages, $order_by = 'default', $manual if ($col) { if (($sort_flags & SORT_NATURAL) === SORT_NATURAL) { $list = preg_replace_callback('~([0-9]+)\.~', function($number) { - return sprintf('%032d', $number); + return sprintf('%032d.', $number[0]); }, $list); }