Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-24491, removed print_object in wiki upgrade code

  • Loading branch information...
commit b9ec7dd28871e4e5cc61971331acaeafb1e7beba 1 parent 725c940
@dcai dcai authored
Showing with 2 additions and 6 deletions.
  1. +0 −2  mod/wiki/db/upgrade.php
  2. +2 −4 mod/wiki/db/upgradelib.php
View
2  mod/wiki/db/upgrade.php
@@ -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);
}
}
}
View
6 mod/wiki/db/upgradelib.php
@@ -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);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.