From: Roland Häder Date: Fri, 17 Aug 2012 20:16:25 +0000 (+0000) Subject: Added debug message, commented one out X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2b49ca96e0166fe58dd863554546a0aad0366ff3;p=core.git Added debug message, commented one out --- diff --git a/inc/classes/main/criteria/class_BaseCriteria.php b/inc/classes/main/criteria/class_BaseCriteria.php index 582a696b..549346f8 100644 --- a/inc/classes/main/criteria/class_BaseCriteria.php +++ b/inc/classes/main/criteria/class_BaseCriteria.php @@ -79,6 +79,11 @@ class BaseCriteria extends BaseFrameworkSystem { * @return void */ public final function addCriteria ($criteriaKey, $criteriaValue) { + // Debug message + if (strpos($criteriaKey, 'my-') !== false) $this->debugBackTrace('criteriaKey=' . $criteriaKey); + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CRITERIA: criteriaKey=' . $criteriaKey . ',criteriaValue=' . $criteriaValue); + + // Add it $this->criteria[$this->convertDashesToUnderscores($criteriaKey)] = (string)$criteriaValue; } diff --git a/inc/classes/main/database/databases/class_LocalFileDatabase.php b/inc/classes/main/database/databases/class_LocalFileDatabase.php index 375ec98e..c6ab513e 100644 --- a/inc/classes/main/database/databases/class_LocalFileDatabase.php +++ b/inc/classes/main/database/databases/class_LocalFileDatabase.php @@ -475,7 +475,7 @@ class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackendIn // Does the extension match? if (substr($dataFile, -(strlen($this->getFileExtension()))) !== $this->getFileExtension()) { // Debug message - /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DATABASE: dataFile=' . $dataFile . ',getFileExtension()=' . $this->getFileExtension() . ' - SKIPPED!'); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DATABASE: dataFile=' . $dataFile . ',getFileExtension()=' . $this->getFileExtension() . ' - SKIPPED!'); // Skip this file! continue; } // END - if