diff options
author | cash <cash.costello@gmail.com> | 2011-07-02 19:22:07 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-07-02 19:22:07 -0400 |
commit | a60e2d661f8895ed643b5c0b38e18add806a6883 (patch) | |
tree | a72f408a5073bfc3cdd91fe55b6e3d648e7bf2a8 /mod/developers/actions | |
parent | 9342a351b331b378f1282794218ff9b26d278ce2 (diff) | |
download | elgg-a60e2d661f8895ed643b5c0b38e18add806a6883.tar.gz elgg-a60e2d661f8895ed643b5c0b38e18add806a6883.tar.bz2 |
Fixes #3500 added setting for raw string display
Diffstat (limited to 'mod/developers/actions')
-rw-r--r-- | mod/developers/actions/developers/settings.php | 8 |
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); |