aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index a77922a9f..7a10cd809 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -266,10 +266,10 @@ function elgg_view($view, $vars = "", $bypass = false, $debug = false, $viewtype
}
}
if (!$success) {
- elgg_log(" [This view ($view) does not exist] ", 'ERROR');
+ elgg_log("The view $view does not exist", 'ERROR');
}
} else if (!file_exists("$view_location$viewtype/$view.php")) {
- elgg_log(" [This view ($view) does not exist] ", 'WARNING');
+ elgg_log("The view $view does not exist", 'WARNING');
}
}
@@ -1756,12 +1756,12 @@ function elgg_log($message, $level='NOTICE') {
$to_screen = !($CONFIG->debug == 'NOTICE');
switch ($level) {
- case 'DEBUG':
case 'ERROR':
// always report
elgg_dump("$level: $message", $to_screen);
break;
case 'WARNING':
+ case 'DEBUG':
// report execept if user wants only errors
if ($CONFIG->debug != 'ERROR') {
elgg_dump("$level: $message", $to_screen);