From 5f8027f94c04b495230bc57a798c923fd3d14644 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 17 Sep 2006 19:14:16 +0000 Subject: - Patch #83397 by edkwh: -> . Getting rid of super-globals. --- modules/system/system.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index c60041ec2..a73f69e15 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -1106,7 +1106,7 @@ function system_theme_settings_submit($form_id, $form_values) { * */ function system_settings_form_submit($form_id, $form_values) { - $op = isset($_POST['op']) ? $_POST['op'] : ''; + $op = isset($form_values['op']) ? $form_values['op'] : ''; // Exclude unnecessary elements. unset($form_values['submit'], $form_values['reset'], $form_values['form_id']); @@ -1191,7 +1191,7 @@ function system_themes_submit($form_id, $form_values) { db_query("UPDATE {system} SET status = 0 WHERE type = 'theme'"); - if ($_POST['op'] == t('Save configuration')) { + if ($form_values['op'] == t('Save configuration')) { if (is_array($form_values['status'])) { foreach ($form_values['status'] as $key => $choice) { // Always enable the default theme, despite its status checkbox being checked: -- cgit v1.2.3