MDL-26913 set timecreated in fortpage of a newly installed site
authorPetr Skoda <commits@skodak.org>
Sun, 27 Mar 2011 16:22:11 +0000 (18:22 +0200)
committerPetr Skoda <commits@skodak.org>
Sun, 27 Mar 2011 16:22:11 +0000 (18:22 +0200)
lib/db/install.php

index 08937c5..0379785 100644 (file)
@@ -45,7 +45,8 @@ function xmldb_main_install() {
     $newsite->numsections  = 0;
     $newsite->category     = 0;
     $newsite->format       = 'site';  // Only for this course
-    $newsite->timemodified = time();
+    $newsite->timecreated  = time();
+    $newsite->timemodified = $newsite->timecreated;
 
     $newsite->id = $DB->insert_record('course', $newsite);
     $SITE = get_site();