diff --git a/module/block/model.php b/module/block/model.php index a199b2292f..b82f8ebe37 100644 --- a/module/block/model.php +++ b/module/block/model.php @@ -47,7 +47,7 @@ class blockModel extends model $block->params = json_decode($block->params); if(empty($block->params)) $block->params = new stdclass(); - if($block->block == 'html') $block->params->html = $this->loadModel('file')->setImgSize($block->params->html); + if($block->code == 'html') $block->params->html = $this->loadModel('file')->setImgSize($block->params->html); return $block; } diff --git a/module/block/ui/create.html.php b/module/block/ui/create.html.php index 4753215697..7ba1c664b4 100644 --- a/module/block/ui/create.html.php +++ b/module/block/ui/create.html.php @@ -49,7 +49,6 @@ form div ( set::id('codeRow'), - set::class('form-row'), $codes ? formGroup ( diff --git a/module/block/ui/edit.html.php b/module/block/ui/edit.html.php index 865833c844..726490a3b6 100644 --- a/module/block/ui/edit.html.php +++ b/module/block/ui/edit.html.php @@ -50,7 +50,6 @@ form div ( set::id('codeRow'), - set::class('form-row'), $codes ? formGroup (