[TEP-COMMIT] [CVS catalog] updates for the new service modules
anonymous-OfajU3CKLf1/[email protected] 13 Apr 2004 08:09:35 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog/includes/classes/database on MAIN
mysql.php +9 -3 1.2 -> 1.3
updates for the new service modules
----------
catalog /catalog /includes /classes /database
mysql.php 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- mysql.php 2004/04/08 02:32:15 1.2
+++ mysql.php 2004/04/13 08:09:35 1.3
@@ -82,7 +82,7 @@
}
function simpleQuery($query, $debug = false) {
- global $messageStack;
+ global $messageStack, $osC_Services;
if ($this->isConnected()) {
$this->number_of_queries++;
@@ -91,8 +91,14 @@
$debug = true;
}
- if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
- error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
+ if (($debug === true) && (!isset($osC_Services) || !$osC_Service->isStarted('debug'))) {
+ $debug = false;
+ }
+
+ if (isset($osC_Services) && $osC_Services->isStarted('debug')) {
+ if (tep_not_null(SERVICE_DEBUG_EXECUTION_TIME_LOG) && (SERVICE_DEBUG_LOG_DB_QUERIES == 'True')) {
+ @error_log('QUERY ' . $query . "\n", 3, SERVICE_DEBUG_EXECUTION_TIME_LOG);
+ }
}
if ($debug === true) {
CVSspam 0.2.8
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click