From 666eab7a89305fe9ca2f953de6386882f76da1e6 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 1 Dec 2016 14:00:37 -0800 Subject: [PATCH] Some debug refinements. --- e107_handlers/db_debug_class.php | 6 ++++-- e107_handlers/sitelinks_class.php | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/e107_handlers/db_debug_class.php b/e107_handlers/db_debug_class.php index 1a567cdd7..ea73bc175 100644 --- a/e107_handlers/db_debug_class.php +++ b/e107_handlers/db_debug_class.php @@ -664,9 +664,11 @@ class e107_db_debug { $message = "
".print_r($message,true)."
"; } - if (!E107_DBG_BASIC){ - return FALSE; + if (!E107_DBG_BASIC && !E107_DBG_ALLERRORS && !E107_DBG_SQLDETAILS && !E107_DBG_NOTICES) + { + return false; } + if ($TraceLev) { $bt = debug_backtrace(); diff --git a/e107_handlers/sitelinks_class.php b/e107_handlers/sitelinks_class.php index bb1cdd6d4..51cb5e201 100644 --- a/e107_handlers/sitelinks_class.php +++ b/e107_handlers/sitelinks_class.php @@ -1603,8 +1603,7 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } if(E107_DBG_PATH) { - e107::getMessage()->addDebug("

Sitelinks::isActive

- db=".$dbLink."
url=".e_REQUEST_URI."

"); + // e107::getDebug()->log("db=".$dbLink."
url=".e_REQUEST_URI."

"); } if($exactMatch)