Updated deprecated $page->modular() method calls to $page->isModule()

This commit is contained in:
Matias Griese
2019-11-15 21:51:47 +02:00
parent ca2762be0a
commit d252286947
4 changed files with 6 additions and 5 deletions

View File

@@ -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