Merge branch 'MDL-66833-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user