]> git.mjollnir.org Git - moodle.git/commitdiff
New block upgrade functions must be called:
authorstronk7 <stronk7>
Sun, 15 Oct 2006 23:04:06 +0000 (23:04 +0000)
committerstronk7 <stronk7>
Sun, 15 Oct 2006 23:04:06 +0000 (23:04 +0000)
xmldb_block_BLOCKNAME_upgrade()

Part of MDL-6786, just for consistency. Merged from MOODLE_17_STABLE

lib/blocklib.php

index 80e55cc55115ef26ebccf7127e7fd588648a789f..6cf7dcae9f2f3c83d802a02753a49a6a8e609f1d 100644 (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;