mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed broken taxonomies [#2633]
This commit is contained in:
parent
8cbc2a27cd
commit
a6741cb761
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user