Fix for modular preview not functioning as expected #254

This commit is contained in:
Andy Miller
2015-11-29 21:22:22 -07:00
parent df6c589806
commit a2275b8b73

View File

@@ -1414,6 +1414,12 @@ class AdminController
$name .= '.md';
$page->name($name);
$page->template($type);
// unset some header things, template for now as we've just set that
if (isset($input['header']['template'])) {
unset($input['header']['template']);
}
}
// Special case for Expert mode: build the raw, unset content