diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-07-06 03:55:10 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-07-06 03:55:10 -0700 |
commit | e4ad206bfd288463a37cfd4f86e6f343e3a35f77 (patch) | |
tree | 6a7c84a815467fc34d7ce266b682f7816427f50d /mod/developers/views/default/admin | |
parent | d15c4bdf3388b7eca709bd81c522ac1ebf087f0a (diff) | |
parent | b3382a41496bee4b66bc69421b9612bedfb77913 (diff) | |
download | elgg-e4ad206bfd288463a37cfd4f86e6f343e3a35f77.tar.gz elgg-e4ad206bfd288463a37cfd4f86e6f343e3a35f77.tar.bz2 |
Merge pull request #54 from cash/dev-tools
Fixes #3564 Adds the inspection tool and logging to the web page
Diffstat (limited to 'mod/developers/views/default/admin')
-rw-r--r-- | mod/developers/views/default/admin/developers/inspect.php | 14 | ||||
-rw-r--r-- | mod/developers/views/default/admin/developers/settings.php | 31 |
2 files changed, 38 insertions, 7 deletions
diff --git a/mod/developers/views/default/admin/developers/inspect.php b/mod/developers/views/default/admin/developers/inspect.php new file mode 100644 index 000000000..cfa3de2ea --- /dev/null +++ b/mod/developers/views/default/admin/developers/inspect.php @@ -0,0 +1,14 @@ +<?php +/** +* Inspect View +* +* Inspect global variables of Elgg +*/ + +elgg_load_js('jquery.jstree'); +elgg_load_css('jquery.jstree'); + +echo elgg_view_form('developers/inspect', array('class' => 'developers-form-inspect')); + +echo '<div id="developers-inspect-results"></div>'; +echo elgg_view('graphics/ajax_loader', array('id' => 'developers-ajax-loader')); diff --git a/mod/developers/views/default/admin/developers/settings.php b/mod/developers/views/default/admin/developers/settings.php index 705ad00c6..287f4d99e 100644 --- a/mod/developers/views/default/admin/developers/settings.php +++ b/mod/developers/views/default/admin/developers/settings.php @@ -3,13 +3,6 @@ * Developer settings */ -$sections = array( - 'simple_cache' => 'checkbox', - 'view_path_cache' => 'checkbox', - 'display_errors' => 'checkbox', - 'debug_level' => 'pulldown', -); - $data = array( 'simple_cache' => array( 'type' => 'checkbox', @@ -39,6 +32,30 @@ $data = array( 'NOTICE' => elgg_echo('developers:debug:notice'), ), ), + + 'screen_log' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('screen_log', 'developers') == 1, + ), + + 'show_strings' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('show_strings', 'developers') == 1, + ), + + 'wrap_views' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('wrap_views', 'developers') == 1, + ), + + 'log_events' => array( + 'type' => 'checkbox', + 'value' => 1, + 'checked' => elgg_get_plugin_setting('log_events', 'developers') == 1, + ), ); $form_vars = array('id' => 'developer-settings-form'); |