Permalink
Browse files

MDL-26913 set timecreated in fortpage of a newly installed site

  • Loading branch information...
1 parent 92a387b commit c4dd3bb86f1da06b0a944c120d8bc7a0c494ac24 @skodak skodak committed Mar 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/db/install.php
View
@@ -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();

0 comments on commit c4dd3bb

Please sign in to comment.