Permalink
Browse files

MDL-28017 SCORM add unset_config for old config var

  • Loading branch information...
1 parent 66c3664 commit 15bec9a3658961308b312eedb1c37e15809736ab @danmarsden danmarsden committed Jul 11, 2011
Showing with 6 additions and 1 deletion.
  1. +5 −0 mod/scorm/db/upgrade.php
  2. +1 −1 mod/scorm/version.php
View
@@ -538,6 +538,11 @@ function xmldb_scorm_upgrade($oldversion) {
// Moodle v2.1.0 release upgrade line
// Put any upgrade step following this
+ if ($oldversion < 2011021402) {
+ unset_config('updatetime', 'scorm');
+ upgrade_mod_savepoint(true, 2011021402, 'scorm');
+ }
+
return true;
}
View
@@ -6,7 +6,7 @@
/////////////////////////////////////////////////////////////////////////////////
-$module->version = 2011021400; // The (date) version of this module
+$module->version = 2011021402; // The (date) version of this module
$module->requires = 2010080300; // The version of Moodle that is required
$module->cron = 300; // How often should cron check this module (seconds)?

0 comments on commit 15bec9a

Please sign in to comment.