From: skodak Date: Mon, 14 Aug 2006 08:37:19 +0000 (+0000) Subject: fixed upgrade success notification, backup and blocks success messages are not red... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8549af11d1d8cdb86ead5093fe8423022a981b9c;p=moodle.git fixed upgrade success notification, backup and blocks success messages are not red anymore... --- diff --git a/backup/lib.php b/backup/lib.php index 02386b7d7e..ceb5ffc747 100644 --- a/backup/lib.php +++ b/backup/lib.php @@ -335,7 +335,7 @@ $db->debug = false; if (set_config("backup_version", $backup_version) and set_config("backup_release", $backup_release)) { notify(get_string("databasesuccess"), "green"); - notify(get_string("databaseupgradebackups", "", $backup_version)); + notify(get_string("databaseupgradebackups", "", $backup_version), "green"); upgrade_log_finish(); print_continue($continueto); exit; @@ -361,7 +361,7 @@ $db->debug=false; if (set_config("backup_version", $backup_version) and set_config("backup_release", $backup_release)) { notify(get_string("databasesuccess"), "green"); - notify(get_string("databaseupgradebackups", "", $backup_version)); + notify(get_string("databaseupgradebackups", "", $backup_version), "green"); upgrade_log_finish(); print_continue($continueto); exit; diff --git a/lib/blocklib.php b/lib/blocklib.php index a402d6319a..3bc7927676 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -918,7 +918,7 @@ function upgrade_blocks_db($continueto) { $db->debug = false; if (set_config('blocks_version', $blocks_version)) { notify(get_string('databasesuccess'), 'notifysuccess'); - notify(get_string('databaseupgradeblocks', '', $blocks_version)); + notify(get_string('databaseupgradeblocks', '', $blocks_version), 'notifysuccess'); upgrade_log_finish(); print_continue($continueto); exit; @@ -944,7 +944,7 @@ function upgrade_blocks_db($continueto) { $db->debug=false; if (set_config('blocks_version', $blocks_version)) { notify(get_string('databasesuccess'), 'notifysuccess'); - notify(get_string('databaseupgradeblocks', '', $blocks_version)); + notify(get_string('databaseupgradeblocks', '', $blocks_version), 'notifysuccess'); upgrade_log_finish(); print_continue($continueto); exit;