From 4c08da6c2ec0859c0bcccb9296cedb985eccce4d Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 23 May 2008 16:16:09 +0000 Subject: Marcus Povey * 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 --- engine/lib/elgglib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine') 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] "); } } -- cgit v1.2.3