getgrav / grav-plugin-relatedpages

Grav RelatedPages Plugin
http://getgrav.org
MIT License
17 stars 7 forks source link

Replace array_intersect_assoc with array_intersect #9

Closed cyberduck-drupal closed 8 years ago

cyberduck-drupal commented 8 years ago

In my case, I use the default category taxonomy but I had to articles where the 2 categories where in different order. As _assoc uses the array key to compare, it did not match them, so array_intersect seems more appropriate to bypass the order of the taxonomy and match them in any order.

rhukster commented 8 years ago

Thanks will test this out.

rhukster commented 8 years ago

Yup this was exactly the problem with taxonomy->taxonomy matching. I added manually with another fix.. Thanks for this!