MDL-25663 debugging does not print html any more in CLI mode
This commit is contained in:
+5
-1
@@ -2849,7 +2849,11 @@ function debugging($message = '', $level = DEBUG_NORMAL, $backtrace = null) {
|
||||
if (!defined('DEBUGGING_PRINTED')) {
|
||||
define('DEBUGGING_PRINTED', 1); // indicates we have printed something
|
||||
}
|
||||
echo '<div class="notifytiny">' . $message . $from . '</div>';
|
||||
if (CLI_SCRIPT) {
|
||||
echo "++ $message ++\n$from";
|
||||
} else {
|
||||
echo '<div class="notifytiny">' . $message . $from . '</div>';
|
||||
}
|
||||
|
||||
} else {
|
||||
trigger_error($message . $from, E_USER_NOTICE);
|
||||
|
||||
Reference in New Issue
Block a user