MDL-20948 warn admin is main salt not set
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user