From 5857970461a95a9d7e2232d28618bed8510e9536 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 9 Sep 2019 17:51:58 +0200 Subject: [PATCH] Fix checkbox for robots --- bl-kernel/admin/controllers/edit-content.php | 5 ----- bl-kernel/admin/controllers/new-content.php | 5 ----- 2 files changed, 10 deletions(-) diff --git a/bl-kernel/admin/controllers/edit-content.php b/bl-kernel/admin/controllers/edit-content.php index 9fcbae16..821bd9fa 100644 --- a/bl-kernel/admin/controllers/edit-content.php +++ b/bl-kernel/admin/controllers/edit-content.php @@ -43,11 +43,6 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { Alert::set( $L->g('The changes have been saved') ); } } else { - // If the checkbox is not selected the form doesn't send the field - $_POST['noindex'] = isset($_POST['noindex'])?true:false; - $_POST['nofollow'] = isset($_POST['nofollow'])?true:false; - $_POST['noarchive'] = isset($_POST['noarchive'])?true:false; - $key = editPage($_POST); if ($key!==false) { Alert::set( $L->g('The changes have been saved') ); diff --git a/bl-kernel/admin/controllers/new-content.php b/bl-kernel/admin/controllers/new-content.php index 882e24ef..b0e7a69d 100644 --- a/bl-kernel/admin/controllers/new-content.php +++ b/bl-kernel/admin/controllers/new-content.php @@ -19,11 +19,6 @@ checkRole(array('admin', 'editor', 'author')); // ============================================================================ if ($_SERVER['REQUEST_METHOD'] == 'POST') { - // If the checkbox is not selected the form doesn't send the field - $_POST['noindex'] = isset($_POST['noindex'])?true:false; - $_POST['nofollow'] = isset($_POST['nofollow'])?true:false; - $_POST['noarchive'] = isset($_POST['noarchive'])?true:false; - createPage($_POST); Redirect::page('content'); }