aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/developers/actions')
-rw-r--r--mod/developers/actions/developers/settings.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/developers/actions/developers/settings.php b/mod/developers/actions/developers/settings.php
index 9fa96fa91..5a7f97cd3 100644
--- a/mod/developers/actions/developers/settings.php
+++ b/mod/developers/actions/developers/settings.php
@@ -17,9 +17,6 @@ if (get_input('view_path_cache')) {
elgg_disable_filepath_cache();
}
-elgg_set_plugin_setting('display_errors', get_input('display_errors'), 'developers');
-elgg_set_plugin_setting('screen_log', get_input('screen_log'), 'developers');
-
$debug = get_input('debug_level');
if ($debug) {
set_config('debug', $debug, $site->getGUID());
@@ -27,6 +24,11 @@ if ($debug) {
unset_config('debug', $site->getGUID());
}
+$simple_settings = array('display_errors', 'screen_log', 'show_strings');
+foreach ($simple_settings as $setting) {
+ elgg_set_plugin_setting($setting, get_input($setting), 'developers');
+}
+
system_message(elgg_echo('developers:settings:success'));
forward(REFERER);