MDL-20948 warn admin is main salt not set

This commit is contained in:
Petr Skoda
2009-11-24 15:02:24 +00:00
parent 8139c92f6d
commit 57e6ce5eeb
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -2826,6 +2826,14 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
upgrade_main_savepoint($result, 2009111702);
}
if ($result && $oldversion < 2009112400) {
if (empty($CFG->passwordsaltmain)) {
$subject = get_string('check_passwordsaltmain_name', 'report_security');
$description = get_string('check_passwordsaltmain_warning', 'report_security');;
upgrade_log(UPGRADE_LOG_NOTICE, null, $subject, $description);
}
upgrade_main_savepoint($result, 2009112400);
}
return $result;
}
+1 -1
View File
@@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2009112000; // YYYYMMDD = date of the last version bump
$version = 2009112400; // YYYYMMDD = date of the last version bump
// XX = daily increments
$release = '2.0 dev (Build: 20091124)'; // Human-friendly version name