mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
Updated deprecated $page->modular() method calls to $page->isModule()
This commit is contained in:
@@ -1777,7 +1777,7 @@ class Admin
|
||||
$header['body_classes'] = 'modular';
|
||||
}
|
||||
|
||||
$name = $page->modular() ? str_replace('modular/', '', $data['name']) : $data['name'];
|
||||
$name = $page->isModule() ? str_replace('modular/', '', $data['name']) : $data['name'];
|
||||
$page->name($name . '.md');
|
||||
|
||||
// Fire new event to allow plugins to manipulate page frontmatter
|
||||
|
||||
Reference in New Issue
Block a user