MDL-42666 repository_boxnet: Improved output during migration
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user