Checking in a fix for the blocks upgrade on the home page so I can test

it on upgrading a real site.
This commit is contained in:
moodler
2004-08-30 14:53:43 +00:00
parent 431c81eefa
commit 5e1eaab52f
4 changed files with 16 additions and 8 deletions
+1 -4
View File
@@ -504,10 +504,7 @@ function main_upgrade($oldversion=0) {
}
if ($oldversion < 2004052800) { /// First version tagged "1.4 development", version.php 1.227
// Add blockinfo to the site course
require_once($CFG->dirroot.'/lib/blocklib.php');
$site = get_site();
blocks_get_default_blocks($site->id, BLOCKS_DEFAULT_SITE);
$CFG->siteblocksadded = true; /// This will be used later by the block upgrade
}
if ($oldversion < 2004053000) { /// set defaults for site course