Fixed bug with frontmatter being killed when in Expert Mode #1345

This commit is contained in:
Andy Miller
2018-03-08 18:07:07 -07:00
parent 860ef9616d
commit c15fe282da
2 changed files with 3 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
* Fixed issues with minimum PHP versions in resource upgrades
* Fixed issue with default lang translation in admin [#1361](https://github.com/getgrav/grav-plugin-admin/issues/1361)
* Typos in `Tools` -> `Direct Install` page [#1345](https://github.com/getgrav/grav-plugin-admin/issues/1345)
* Fixed bug with frontmatter being killed when in `Expert Mode` [#1345](https://github.com/getgrav/grav-plugin-admin/issues/1354)
# v1.7.0-rc.3
## 02/15/2018

View File

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