mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
Fixed bug with frontmatter being killed when in Expert Mode #1345
This commit is contained in:
@@ -1841,9 +1841,8 @@ class AdminController extends AdminBaseController
|
||||
if (isset($input['frontmatter']) && isset($input['content'])) {
|
||||
$page->raw("---\n" . (string)$input['frontmatter'] . "\n---\n" . (string)$input['content']);
|
||||
unset($input['content']);
|
||||
}
|
||||
|
||||
if (isset($input['header'])) {
|
||||
// Handle header normally
|
||||
} elseif (isset($input['header'])) {
|
||||
$header = $input['header'];
|
||||
|
||||
foreach ($header as $key => $value) {
|
||||
|
||||
Reference in New Issue
Block a user