summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-09-17 19:14:16 +0000
committerDries Buytaert <dries@buytaert.net>2006-09-17 19:14:16 +0000
commit5f8027f94c04b495230bc57a798c923fd3d14644 (patch)
tree3122325bccdb66fc5cad1c8a8db8bddfc35a455a /modules/system/system.module
parentcb8201c337c293cc7dd7f9a25579f18d4549324b (diff)
downloadbrdo-5f8027f94c04b495230bc57a798c923fd3d14644.tar.gz
brdo-5f8027f94c04b495230bc57a798c923fd3d14644.tar.bz2
- Patch #83397 by edkwh: -> . Getting rid of super-globals.
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: