MDL-19814 Upgraded calls to helpbutton, print_simple_box* and notify
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
* @return void
|
||||
*/
|
||||
function imscp_20_migrate() {
|
||||
global $CFG, $DB;
|
||||
global $CFG, $DB, $OUTPUT;
|
||||
require_once("$CFG->libdir/filelib.php");
|
||||
require_once("$CFG->dirroot/course/lib.php");
|
||||
require_once("$CFG->dirroot/mod/imscp/locallib.php");
|
||||
@@ -100,7 +100,7 @@ function imscp_20_migrate() {
|
||||
} catch (Exception $e) {
|
||||
//continue on error, we can not recover anyway
|
||||
$error = true;
|
||||
notify("IMSCP: failed migrating file: $relname");
|
||||
echo $OUTPUT->notification("IMSCP: failed migrating file: $relname");
|
||||
}
|
||||
}
|
||||
unset($files);
|
||||
@@ -144,4 +144,4 @@ function imsc_migrate_get_old_files($path, $relative) {
|
||||
}
|
||||
unset($items);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ function resource_print_tobemigrated($resource, $cm, $course) {
|
||||
resource_print_header($resource, $cm, $course);
|
||||
resource_print_heading($resource, $cm, $course);
|
||||
resource_print_intro($resource, $cm, $course);
|
||||
notify(get_string('notmigrated', 'resource', $resoruce_old->type));
|
||||
echo $OUTPUT->notification(get_string('notmigrated', 'resource', $resoruce_old->type));
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
}
|
||||
@@ -338,7 +338,7 @@ function resource_print_filenotfound($resource, $cm, $course) {
|
||||
resource_print_header($resource, $cm, $course);
|
||||
resource_print_heading($resource, $cm, $course);
|
||||
resource_print_intro($resource, $cm, $course);
|
||||
notify(get_string('notmigrated', 'resource', $resoruce_old->type));
|
||||
echo $OUTPUT->notification(get_string('notmigrated', 'resource', $resoruce_old->type));
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user