Fixed broken taxonomies [#2633]

This commit is contained in:
Matias Griese 2019-08-19 10:21:24 +03:00
parent 8cbc2a27cd
commit a6741cb761
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
1. [](#bugfix)
* Fixed `$page->summary()` always striping HTML tags if the summary was set by `$page->setSummary()`
* Grav 1.7: Fixed enabling PHP Debug Bar causes fatal error in Gantry [#2634](https://github.com/getgrav/grav/issues/2634)
* Grav 1.7: Fixed broken taxonomies [#2633](https://github.com/getgrav/grav/issues/2633)
# v1.7.0-beta.5
## 08/11/2019

View File

@ -352,7 +352,7 @@ class Pages
continue;
}
$test = $page->taxonomy[$taxonomy] ?? [];
$test = $page->taxonomy()[$taxonomy] ?? [];
foreach ($items as $item) {
if (!$test || !\in_array($item, $test, true)) {
$collection->remove($page->path());