Fix checkbox for robots

This commit is contained in:
Diego Najar 2019-09-09 17:51:58 +02:00
parent a9640ff6b5
commit 5857970461
2 changed files with 0 additions and 10 deletions

View File

@ -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') );

View File

@ -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');
}