aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-07-02 12:07:27 -0400
committercash <cash.costello@gmail.com>2011-07-02 12:07:27 -0400
commitc4a53af23533d44383a87b5180b15e1a01a0e18a (patch)
tree0072123e654c1c7886295e218f68be1403d1ea61 /mod/developers/start.php
parentae5ad0a65508725871159ffb6a068fcb2084aad7 (diff)
downloadelgg-c4a53af23533d44383a87b5180b15e1a01a0e18a.tar.gz
elgg-c4a53af23533d44383a87b5180b15e1a01a0e18a.tar.bz2
added logging to the web page footer
Diffstat (limited to 'mod/developers/start.php')
-rw-r--r--mod/developers/start.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/developers/start.php b/mod/developers/start.php
index a53b7eec4..23b82d9db 100644
--- a/mod/developers/start.php
+++ b/mod/developers/start.php
@@ -12,6 +12,7 @@ function developers_init() {
elgg_register_event_handler('pagesetup', 'system', 'developers_setup_menu');
elgg_extend_view('css/admin', 'developers/css');
+ elgg_extend_view('css/elgg', 'developers/css');
elgg_register_page_handler('theme_preview', 'developers_theme_preview_controller');
@@ -32,6 +33,13 @@ function developers_process_settings() {
} else {
ini_set('display_errors', 0);
}
+
+ if (elgg_get_plugin_setting('screen_log', 'developers') == 1) {
+ $cache = new ElggLogCache();
+ elgg_set_config('log_cache', $cache);
+ elgg_register_plugin_hook_handler('debug', 'log', array($cache, 'insertDump'));
+ elgg_extend_view('page/elements/foot', 'developers/log');
+ }
}
function developers_setup_menu() {