aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-03-30 12:15:23 -0400
committercash <cash.costello@gmail.com>2013-03-30 12:15:23 -0400
commitbc2bc90bd5282d08ed87dc374f4135d8182c931b (patch)
treeefd1d53e41282a56e9a9d3c0d532db213f4f9355 /engine/lib/elgglib.php
parentcb8a932702a66a8d8ec69982441e71bde8fd1b5c (diff)
downloadelgg-bc2bc90bd5282d08ed87dc374f4135d8182c931b.tar.gz
elgg-bc2bc90bd5282d08ed87dc374f4135d8182c931b.tar.bz2
Refs #4356 do not display elgg_dump() messages on js or css requests
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index f4b1a0a3e..a49b620ac 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1185,6 +1185,11 @@ function elgg_dump($value, $to_screen = TRUE, $level = 'NOTICE') {
$to_screen = FALSE;
}
+ // Do not want to write to JS or CSS pages
+ if (elgg_in_context('js') || elgg_in_context('css')) {
+ $to_screen = FALSE;
+ }
+
if ($to_screen == TRUE) {
echo '<pre>';
print_r($value);