upgrade_main_savepoint($result, 2009040302);
}
+ if ($result && $oldversion < 2009040600) {
+ /// Ensure that $CFG->stringfilters is set.
+ if (empty($CFG->stringfilters)) {
+ if (!empty($CFG->filterall)) {
+ set_config('stringfilters', $CFG->textfilters);
+ } else {
+ set_config('stringfilters', '');
+ }
+ }
+
+ set_config('filterall', !empty($CFG->stringfilters));
+ unset_config('textfilters');
+
+ /// Main savepoint reached
+ upgrade_main_savepoint($result, 2009040600);
+ }
+
return $result;
}
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
- $version = 2009040303; // YYYYMMDD = date of the last version bump
+ $version = 2009040600; // YYYYMMDD = date of the last version bump
// XX = daily increments
$release = '2.0 dev (Build: 20090413)'; // Human-friendly version name