Commit fc89251a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Require blocktype lib in view delete

parent 4ad41ebb
......@@ -270,6 +270,7 @@ class View {
if ($blockinstanceids = get_column('block_instance', 'id', 'view', $this->id)) {
require_once(get_config('docroot') . 'blocktype/lib.php');
foreach ($blockinstanceids as $id) {
$bi = new BlockInstance($id);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment