mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-03 22:31:12 +01:00
removed old 'visible' logic
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user