From a61b62e592380fa3be7e4ff812f3e514afabd321 Mon Sep 17 00:00:00 2001 From: nickw Date: Fri, 16 Oct 2009 22:53:22 +0000 Subject: Rewriting core debug messages to be more informative. Introducing the concept of levels for Elgg debugging: notices, warnings and errors are displayed when the appropriate debugging level is enabled. An additional level of "debug" exists to differentiate from errors. git-svn-id: http://code.elgg.org/elgg/trunk@3560 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/languages.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'engine/lib/languages.php') diff --git a/engine/lib/languages.php b/engine/lib/languages.php index 19f3c138a..898fc725f 100644 --- a/engine/lib/languages.php +++ b/engine/lib/languages.php @@ -125,10 +125,7 @@ function register_translations($path, $load_all = false) { // Get the current language based on site defaults and user preference $current_language = get_current_language(); - - if (isset($CONFIG->debug) && $CONFIG->debug == true) { - error_log("Translations loaded from : $path"); - } + elgg_log("Translations loaded from: $path"); if ($handle = opendir($path)) { while ($language = readdir($handle)) { @@ -140,7 +137,7 @@ function register_translations($path, $load_all = false) { } } } else { - error_log("Missing translation path $path"); + elgg_log("Missing translation path $path", 'ERROR'); } } -- cgit v1.2.3