New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / modules / admin / what-maintenance.php
index 019cb57969c9253913f14a0bcd22035a9da939a3..9fc9045f46203358202f5e437ea169fe396b9592 100644 (file)
@@ -50,18 +50,18 @@ if (IS_FORM_SENT()) {
        switch (getConfig('maintenance'))
        {
        case 'Y':
-               $target_mode = "N";
+               $target_mode = 'N';
                $out = getMessage('ADMIN_MAINTENANCE_DEACTIVATED');
                break;
 
        case 'N':
-               $target_mode = "Y";
+               $target_mode = 'Y';
                $out = getMessage('ADMIN_MAINTENANCE_ACTIVATED');
                break;
        }
 
        // Update config
-       UPDATE_CONFIG('maintenance', $target_mode);
+       updateConfiguration('maintenance', $target_mode);
 
        // Load template
        LOAD_TEMPLATE('admin_settings_saved', false, $out);