mirror of
https://github.com/moodle/moodle.git
synced 2025-04-11 19:42:35 +02:00
Merge branch 'MDL-66833-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
c8ba91cb12
@ -1639,6 +1639,10 @@ function print_object($object) {
|
||||
if (CLI_SCRIPT) {
|
||||
fwrite(STDERR, print_r($object, true));
|
||||
fwrite(STDERR, PHP_EOL);
|
||||
} else if (AJAX_SCRIPT) {
|
||||
foreach (explode("\n", print_r($object, true)) as $line) {
|
||||
error_log($line);
|
||||
}
|
||||
} else {
|
||||
echo html_writer::tag('pre', s(print_r($object, true)), array('class' => 'notifytiny'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user