$this->title = get_string('administration');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
- $this->version = 2005052800;
+ $this->version = 2004081200;
}
function applicable_formats() {
$this->title = get_string('calendar', 'calendar');
$this->content_type = BLOCK_TYPE_TEXT;
$this->course = $course;
- $this->version = 2005052600;
+ $this->version = 2004081200;
}
function applicable_formats() {
$this->title = get_string('courses');
$this->content_type = BLOCK_TYPE_LIST;
$this->course = $course;
- $this->version = 2005052600;
+ $this->version = 2004081200;
}
function has_config() {
$result = true;
+ if ($oldversion == 2005052600) { /// Fix a buggy date
+ $oldversion = 2004081200;
+ set_field();
+ }
+
if ($oldversion < 2004041000 and $result) {
$result = true; //Nothing to do
}
}
}
+ if ($oldversion < 2004081200) { // Fixing version errors in some blocks
+ set_field('blocks', 'version', 2004081200, 'name', 'admin');
+ set_field('blocks', 'version', 2004081200, 'name', 'calendar_month');
+ set_field('blocks', 'version', 2004081200, 'name', 'course_list');
+ }
+
+
return $result;
}
}
}
+ if ($oldversion < 2004081200) { // Fixing version errors in some blocks
+ set_field('blocks', 'version', 2004081200, 'name', 'admin');
+ set_field('blocks', 'version', 2004081200, 'name', 'calendar_month');
+ set_field('blocks', 'version', 2004081200, 'name', 'course_list');
+ }
+
return $result;
// database to determine whether upgrades should
// be performed (see lib/db/*.php)
-$version = 2004080300; // The current version is a date (YYYYMMDDXX)
+$version = 2004081200; // The current version is a date (YYYYMMDDXX)
$release = "1.4 development"; // User-friendly version number