]> git.mjollnir.org Git - moodle.git/commitdiff
fixed upgrade success notification, backup and blocks success messages are not red...
authorskodak <skodak>
Mon, 14 Aug 2006 08:37:19 +0000 (08:37 +0000)
committerskodak <skodak>
Mon, 14 Aug 2006 08:37:19 +0000 (08:37 +0000)
backup/lib.php
lib/blocklib.php

index 02386b7d7e93c0f2b4427a65fa5f1491b0e4f387..ceb5ffc747e1bbed87c02aa7897ae2a4e684670f 100644 (file)
                 $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;
                 $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;
index a402d6319a149bc16c881d1c04fb77228c51081b..3bc7927676e56ed8f5ca6aec1bdfd35469606688 100644 (file)
@@ -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;