Commit 6479a378 authored by Nigel McNie's avatar Nigel McNie
Browse files

Prevent notices when adding an image block to a page.


Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 290352f9
...@@ -92,7 +92,7 @@ class PluginBlocktypeImage extends PluginBlocktype { ...@@ -92,7 +92,7 @@ class PluginBlocktypeImage extends PluginBlocktype {
'showdescription' => array( 'showdescription' => array(
'type' => 'checkbox', 'type' => 'checkbox',
'title' => get_string('showdescription', 'blocktype.file/image'), 'title' => get_string('showdescription', 'blocktype.file/image'),
'defaultvalue' => $configdata['showdescription'], 'defaultvalue' => !empty($configdata['showdescription']) ? true : false,
), ),
'width' => array( 'width' => array(
'type' => 'text', 'type' => 'text',
......
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