mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Do not use deprecated $page->modular() method
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
1. [Common](#common)
|
||||
1. [](#improved)
|
||||
- Improved PHP 8.1 compatibility
|
||||
1. [Grav](#grav)
|
||||
1. [](#improved)
|
||||
- Do not use deprecated `$page->modular()` method
|
||||
|
||||
# 5.5.6
|
||||
## 12/03/2021
|
||||
|
||||
@@ -224,7 +224,7 @@ class Menu extends AbstractMenu
|
||||
*/
|
||||
public function getItemsFromPlatformRecurse(PageInterface $page, $levels)
|
||||
{
|
||||
if (!$page->visible() || $page->modular()) {
|
||||
if (!$page->visible() || $page->isModule()) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user