mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 11:31:43 +01:00
Implode an array returned by sort order #1264
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,8 +1,16 @@
|
||||
# v1.1.15
|
||||
## xx/xx/2017
|
||||
|
||||
1. [](#new)
|
||||
* Added a new `Collection::merge()` method to allow merging of multiple collections [#1258](https://github.com/getgrav/grav/pull/1258)
|
||||
1. [](#bugfix)
|
||||
* Fixed an issue when page collection with header-based `sort.by` returns an array [#1264](https://github.com/getgrav/grav/issues/1264)
|
||||
|
||||
# v1.1.14
|
||||
## 01/18/2017
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed `page.collection()` returning array and not Collection object when header variable did not exist
|
||||
* Fixed `Page::collection()` returning array and not Collection object when header variable did not exist
|
||||
* Revert `Content-Encoding: identity` fix, and let you set `cache: allow_webserver_gzip:` option to switch to `identity` [#548](https://github.com/getgrav/grav/issues/548)
|
||||
|
||||
# v1.1.13
|
||||
|
||||
@@ -1079,7 +1079,9 @@ class Pages
|
||||
case (is_string($header_query[0])):
|
||||
$child_header = new Header((array)$child->header());
|
||||
$header_value = $child_header->get($header_query[0]);
|
||||
if ($header_value) {
|
||||
if (is_array($header_value)) {
|
||||
$list[$key] = implode(',',$header_value);
|
||||
} elseif ($header_value) {
|
||||
$list[$key] = $header_value;
|
||||
} else {
|
||||
$list[$key] = $header_default ?: $key;
|
||||
|
||||
Reference in New Issue
Block a user