| 1 |
<?php |
<?php |
| 2 |
// $Id: debug.inc,v 1.17.2.6 2009/05/09 12:45:15 dman Exp $ |
// $Id: debug.inc,v 1.17.2.7 2009/05/09 14:16:30 dman Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* Small library of diagnostic feedback stuff. |
* Small library of diagnostic feedback stuff. |
| 21 |
function import_html_debug($message, $variables = array(), $severity = WATCHDOG_DEBUG) { |
function import_html_debug($message, $variables = array(), $severity = WATCHDOG_DEBUG) { |
| 22 |
$debuglevel = import_html_variable('debug_level'); |
$debuglevel = import_html_variable('debug_level'); |
| 23 |
if (empty($debuglevel) && ($severity >= WATCHDOG_DEBUG)) return; |
if (empty($debuglevel) && ($severity >= WATCHDOG_DEBUG)) return; |
| 24 |
|
if (! is_array($variables)) { |
| 25 |
|
trigger_error("Incorrect code call to import_html_debug ($message)"); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
watchdog('Import HTML', $message, $variables, $severity); |
watchdog('Import HTML', $message, $variables, $severity); |
| 29 |
} |
} |
| 30 |
|
|