mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-25663 debugging does not print html any more in CLI mode
This commit is contained in:
parent
883deb3eb5
commit
2df1126b2d
1 changed files with 5 additions and 1 deletions
|
@ -2849,7 +2849,11 @@ function debugging($message = '', $level = DEBUG_NORMAL, $backtrace = null) {
|
||||||
if (!defined('DEBUGGING_PRINTED')) {
|
if (!defined('DEBUGGING_PRINTED')) {
|
||||||
define('DEBUGGING_PRINTED', 1); // indicates we have printed something
|
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 {
|
} else {
|
||||||
trigger_error($message . $from, E_USER_NOTICE);
|
trigger_error($message . $from, E_USER_NOTICE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue