summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module4
1 files changed, 2 insertions, 2 deletions
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: