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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user