MDL-33293 init JS and theme revisions to timestamps in install to match new reset...
[moodle.git] / lib / db / install.php
index f0bb45d..b3e9aa2 100644 (file)
@@ -319,8 +319,9 @@ function xmldb_main_install() {
     set_role_contextlevels($guestrole,          get_default_contextlevels('guest'));
     set_role_contextlevels($userrole,           get_default_contextlevels('user'));
 
     set_role_contextlevels($guestrole,          get_default_contextlevels('guest'));
     set_role_contextlevels($userrole,           get_default_contextlevels('user'));
 
-    // Init themes
-    set_config('themerev', 1);
+    // Init theme and JS revisions
+    set_config('themerev', time());
+    set_config('jsrev', time());
 
     // Install licenses
     require_once($CFG->libdir . '/licenselib.php');
 
     // Install licenses
     require_once($CFG->libdir . '/licenselib.php');