diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-23 16:16:09 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-23 16:16:09 +0000 |
commit | 4c08da6c2ec0859c0bcccb9296cedb985eccce4d (patch) | |
tree | 3005d1b5f52c3c66a9c51aeb48046a2331e1568f /engine | |
parent | 01c8edf795dbf0a7ea947e7f0676448bdf8ed578 (diff) | |
download | elgg-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')
-rw-r--r-- | engine/lib/elgglib.php | 8 |
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] ");
}
}
|