Permalink
Browse files

MDL-25663 debugging does not print html any more in CLI mode

  • Loading branch information...
1 parent 883deb3 commit 2df1126b2d751f36f8aa4e62cade8df4253029eb @skodak skodak committed Dec 13, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/weblib.php
View
@@ -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);

0 comments on commit 2df1126

Please sign in to comment.