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