Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f4f82f
)
MDL-19917 it is now possible to recover installation when it stops on some blocks...
author
Petr Skoda
<skodak@moodle.org>
Tue, 6 Apr 2010 19:52:45 +0000
(19:52 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Tue, 6 Apr 2010 19:52:45 +0000
(19:52 +0000)
lib/upgradelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/upgradelib.php
b/lib/upgradelib.php
index
5cbc80d
..
3070687
100644
(file)
--- a/
lib/upgradelib.php
+++ b/
lib/upgradelib.php
@@
-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