mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Make sure fix works with Grav 1.6, too (#2557)
This commit is contained in:
@@ -65,7 +65,9 @@ class AssignmentsPage implements AssignmentsInterface
|
||||
$pages = $grav['pages'];
|
||||
|
||||
// Initialize pages; in Grav 1.7 admin, pages are not initialized by default.
|
||||
$pages->enablePages();
|
||||
if (method_exists($pages, 'enablePages')) {
|
||||
$pages->enablePages();
|
||||
}
|
||||
$pages = $pages->all()->routable();
|
||||
|
||||
$items = [];
|
||||
|
||||
Reference in New Issue
Block a user