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:
593c913
)
MDL-22019 fixed notices caused by deleting blocks without unisntalling
author
Petr Skoda
<skodak@moodle.org>
Fri, 2 Apr 2010 08:26:59 +0000
(08:26 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Fri, 2 Apr 2010 08:26:59 +0000
(08:26 +0000)
admin/settings/plugins.php
patch
|
blob
|
blame
|
history
diff --git
a/admin/settings/plugins.php
b/admin/settings/plugins.php
index
0a843e2
..
4d2c950
100644
(file)
--- a/
admin/settings/plugins.php
+++ b/
admin/settings/plugins.php
@@
-45,6
+45,9
@@
if ($hassiteconfig) {
$blockbyname = array();
foreach ($blocks as $block) {
+ if (!file_exists("$CFG->dirroot/blocks/$block->name")) {
+ continue;
+ }
if(($blockobject = block_instance($block->name)) === false) {
// Failed to load
continue;