Commit c2e41b52 authored by Penny Leach's avatar Penny Leach Committed by Nigel McNie
Browse files

changed the placeholder block type to just return a string rather than futsing...

changed the placeholder block type to just return a string rather than futsing with the configdata stuff
parent 5a06b87e
......@@ -43,8 +43,9 @@ class PluginBlocktypeImage extends PluginBlocktype {
public static function render_instance(BlockInstance $instance) {
require_once(get_config('docroot') . 'lib/artefact.php');
$configdata = $instance->get('configdata'); // this will make sure to unserialize it for us
$image = artefact_instance_from_id($configdata['artefactid']);
return $image->render_self($configdata); // in this case, config data contains width & height
// $image = artefact_instance_from_id($configdata['artefactid']);
// return $image->render_self($configdata); // in this case, config data contains width & height
return 'whee!';
}
}
......
Markdown is supported
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