removed old 'visible' logic

This commit is contained in:
Andy Miller
2015-08-16 22:42:08 -06:00
parent a20fccf450
commit d7ed057911

View File

@@ -1151,14 +1151,8 @@ class AdminController
$ordering = $order ? sprintf('%02d.', $order) : '';
$slug = empty($input['folder']) ? $page->value('folder') : (string) $input['folder'];
$page->folder($ordering . $slug);
if (isset($input['header']['visible']) && $input['header']['visible'] == true) {
unset($input['header']['visible']);
}
}
if (isset($input['type']) && !empty($input['type'])) {
$type = (string) strtolower($input['type']);
$name = preg_replace('|.*/|', '', $type) . '.md';