New block upgrade functions must be called:

xmldb_block_BLOCKNAME_upgrade()

Part of MDL-6786, just for consistency. Merged from MOODLE_17_STABLE
This commit is contained in:
stronk7
2006-10-15 23:04:06 +00:00
parent 6b7be6d74f
commit 32ac847351
+1 -1
View File
@@ -1167,7 +1167,7 @@ function upgrade_blocks_plugins($continueto) {
/// Run de old and new upgrade functions for the module
$oldupgrade_function = $block->name .'_upgrade';
$newupgrade_function = 'xmldb_' . $block->name .'_upgrade';
$newupgrade_function = 'xmldb_block_' . $block->name .'_upgrade';
/// First, the old function if exists
$oldupgrade_status = true;