]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20948 warn admin is main salt not set
authorPetr Skoda <skodak@moodle.org>
Tue, 24 Nov 2009 15:02:24 +0000 (15:02 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 24 Nov 2009 15:02:24 +0000 (15:02 +0000)
lib/db/upgrade.php
version.php

index 341424d4e0768299a0c60b879801456e68ecc0db..f2671bb93fefbecdf8191e5212fd6b5df9e9bc00 100644 (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;
 }
index f0f3f08a46ec4d109b469e891d408e1ca833ac1e..b177b07a7c0358460f6251c2701b5949a8ab4336 100644 (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