mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 14:15:11 +02:00
MDL-24491, removed print_object in wiki upgrade code
This commit is contained in:
parent
725c9404e4
commit
b9ec7dd288
@ -271,8 +271,6 @@ function xmldb_wiki_upgrade($oldversion) {
|
||||
}
|
||||
} else {
|
||||
echo $OUTPUT->notification("Bad data found: $r->pagename <br/> Expected file path: $thefile Please fix the bad file path manually.");
|
||||
// print file meta info, which can help admin find missing file
|
||||
print_object($filemeta);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -293,15 +293,13 @@ function wiki_upgrade_migrate_versions() {
|
||||
$version->content = $content;
|
||||
$DB->insert_record('wiki_versions', $version);
|
||||
} catch (Exception $e) {
|
||||
echo $OUTPUT->notification('Cannot insert this record');
|
||||
print_object($version);
|
||||
echo $OUTPUT->notification('Cannot insert this record, page id: ' . $page->id);
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
$DB->insert_record('wiki_versions', $version);
|
||||
} catch (Exception $e) {
|
||||
echo $OUTPUT->notification('Cannot insert this record');
|
||||
print_object($version);
|
||||
echo $OUTPUT->notification('Cannot insert this record, page id: ' . $page->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user