From: nicolasconnault Date: Tue, 18 Aug 2009 05:15:27 +0000 (+0000) Subject: MDL-19814 Upgraded calls to helpbutton, print_simple_box* and notify X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a77e87bd6862ec8ff2c27567a95ae3d1c454dacb;p=moodle.git MDL-19814 Upgraded calls to helpbutton, print_simple_box* and notify --- diff --git a/mod/imscp/db/upgradelib.php b/mod/imscp/db/upgradelib.php index 1319c41d36..7872113818 100644 --- a/mod/imscp/db/upgradelib.php +++ b/mod/imscp/db/upgradelib.php @@ -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; -} \ No newline at end of file +} diff --git a/mod/resource/locallib.php b/mod/resource/locallib.php index aed8ceb318..39a72ec18c 100644 --- a/mod/resource/locallib.php +++ b/mod/resource/locallib.php @@ -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; }