aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 16:16:09 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 16:16:09 +0000
commit4c08da6c2ec0859c0bcccb9296cedb985eccce4d (patch)
tree3005d1b5f52c3c66a9c51aeb48046a2331e1568f /engine/lib/elgglib.php
parent01c8edf795dbf0a7ea947e7f0676448bdf8ed578 (diff)
downloadelgg-4c08da6c2ec0859c0bcccb9296cedb985eccce4d.tar.gz
elgg-4c08da6c2ec0859c0bcccb9296cedb985eccce4d.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* View debug messages now echoed to system log instead of to the screen. * Minor doc fix git-svn-id: https://code.elgg.org/elgg/trunk@699 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 68d760202..b3ed96318 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -75,7 +75,7 @@
* @param string $view The name and location of the view to use
* @param array $vars Any variables that the view requires, passed as an array
* @param string $viewtype Optionally, the type of view that we're using (most commonly 'default')
- * @param boolean $debug If set to true, elgg_view will bypass any specified alternative template handler; by default, it will hand off to this if requested (see set_template_handler)
+ * @param boolean $bypass If set to true, elgg_view will bypass any specified alternative template handler; by default, it will hand off to this if requested (see set_template_handler)
* @param boolean $debug If set to true, the viewer will complain if it can't find a view
* @return string The HTML content
*/
@@ -162,11 +162,11 @@
}
}
if (!$success && isset($CONFIG->debug) && $CONFIG->debug == true) {
- echo " [This view ({$view}) does not exist] ";
+ error_log(" [This view ({$view}) does not exist] ");
}
} else if ($CONFIG->debug == true && !file_exists($location . "{$viewtype}/{$view}.php")) {
- echo $location . "{$viewtype}/{$view}.php";
- echo " [This view ({$view}) does not exist] ";
+ error_log($location . "{$viewtype}/{$view}.php");
+ error_log(" [This view ({$view}) does not exist] ");
}
}