MDL-42666 repository_boxnet: Improved output during migration

This commit is contained in:
Frederic Massart
2013-11-07 10:58:40 +08:00
parent 51ada519a6
commit f591c247ca
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -116,6 +116,8 @@ function repository_boxnet_migrate_references_from_apiv1() {
continue;
}
mtrace('Starting migration of file reference ' . $file->get_referencefileid());
// Manually import the file to the file pool to prevent timeout limitations of the repository method get_file().
// We ignore the fact that the content of the file could exist locally because we want to synchronize the file
// now to prevent the repository to try to download the file as well.
+3 -1
View File
@@ -31,6 +31,8 @@
* @todo Deprecate/remove this tool after the 14th of December 2013.
*/
define('NO_OUTPUT_BUFFERING', true);
require_once(__DIR__ . '/../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/repository/boxnet/locallib.php');
@@ -40,7 +42,7 @@ require_capability('moodle/site:config', context_system::instance());
$title = get_string('migrationtool', 'repository_boxnet');
$PAGE->set_context(context_system::instance());
$PAGE->set_pagelayout('admin');
$PAGE->set_pagelayout('maintenance');
$PAGE->set_title($title);
$PAGE->set_heading($title);
$PAGE->set_url(new moodle_url('/repository/boxnet/migrationv1.php'));