MDL-19917 it is now possible to recover installation when it stops on some blocks...
authorPetr Skoda <skodak@moodle.org>
Tue, 6 Apr 2010 19:52:45 +0000 (19:52 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 6 Apr 2010 19:52:45 +0000 (19:52 +0000)
lib/upgradelib.php

index 5cbc80d..3070687 100644 (file)
@@ -559,7 +559,7 @@ function upgrade_plugins_blocks($startcallback, $endcallback, $verbose) {
     foreach ($blocks as $blockname=>$fullblock) {
 
         if (is_null($first_install)) {
-            $first_install = ($DB->count_records('block') == 0);
+            $first_install = ($DB->count_records('block_instances') == 0);
         }
 
         if ($blockname == 'NEWBLOCK') {   // Someone has unzipped the template, ignore it