aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/actions
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-15 02:07:22 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-15 02:07:22 +0000
commite1e9ccd8d3f8a0d773ed7af4fb886781fd45cb3a (patch)
tree735ba973f656f573253e2deb89ab9f05c5a5c38b /mod/developers/actions
parent002417221f727d93b20eebc40bb85509d1584880 (diff)
downloadelgg-e1e9ccd8d3f8a0d773ed7af4fb886781fd45cb3a.tar.gz
elgg-e1e9ccd8d3f8a0d773ed7af4fb886781fd45cb3a.tar.bz2
Fixes #3009 a bare bones developer tools settings
git-svn-id: http://code.elgg.org/elgg/trunk@8713 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/developers/actions')
-rw-r--r--mod/developers/actions/developers/settings.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/developers/actions/developers/settings.php b/mod/developers/actions/developers/settings.php
index 56509282f..d8be34866 100644
--- a/mod/developers/actions/developers/settings.php
+++ b/mod/developers/actions/developers/settings.php
@@ -3,4 +3,27 @@
* Save the developer settings
*/
+$site = elgg_get_site_entity();
+
+if (get_input('simple_cache')) {
+ elgg_enable_simplecache();
+} else {
+ elgg_disable_simplecache();
+}
+
+if (get_input('view_path_cache')) {
+ elgg_enable_filepath_cache();
+} else {
+ elgg_disable_filepath_cache();
+}
+
+elgg_set_plugin_setting('display_errors', get_input('display_errors'), 'developers');
+
+$debug = get_input('debug_level');
+if ($debug) {
+ set_config('debug', $debug, $site->getGUID());
+} else {
+ unset_config('debug', $site->getGUID());
+}
+
forward(REFERER);