From bceaf8f0daf1d76bb33afdef8ea231fbc855a5c2 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 29 Aug 2006 09:12:03 +0000 Subject: #80574 Eaton and chx. Replace $_POST['edit'] with $_POST. --- modules/system/system.module | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index b9dfe9b13..614e57cc7 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1359,9 +1359,9 @@ function system_theme_settings($key = '') { $filename = ($key) ? str_replace('/', '_', $key) . '_logo.' . $parts['extension'] : 'logo.' . $parts['extension']; if ($file = file_save_upload('logo_upload', $filename, 1)) { - $_POST['edit']['default_logo'] = 0; - $_POST['edit']['logo_path'] = $file->filepath; - $_POST['edit']['toggle_logo'] = 1; + $_POST['default_logo'] = 0; + $_POST['logo_path'] = $file->filepath; + $_POST['toggle_logo'] = 1; } } else { @@ -1375,9 +1375,9 @@ function system_theme_settings($key = '') { $filename = ($key) ? str_replace('/', '_', $key) . '_favicon.' . $parts['extension'] : 'favicon.' . $parts['extension']; if ($file = file_save_upload('favicon_upload', $filename, 1)) { - $_POST['edit']['default_favicon'] = 0; - $_POST['edit']['favicon_path'] = $file->filepath; - $_POST['edit']['toggle_favicon'] = 1; + $_POST['default_favicon'] = 0; + $_POST['favicon_path'] = $file->filepath; + $_POST['toggle_favicon'] = 1; } } @@ -1523,7 +1523,7 @@ function system_theme_settings($key = '') { * offered to go back to the item that is being changed in case the user changes * his/her mind. * - * You can check for the existence of $_POST['edit'][$name] (where $name + * You can check for the existence of $_POST[$name] (where $name * is usually 'confirm') to check if the confirmation was successful or * use the regular submit model. * -- cgit v1.2.3