Commit 48e73456 authored by profix898's avatar profix898

- bugfix: image grid block broken (no multi-column layout available)

parent ba16237d
......@@ -170,7 +170,8 @@ function _gallery_block_image_block($delta, $plugin, $plugin_block) {
$params['linkTarget'] = variable_get($element .'_link_target', '');
$params['link'] = variable_get($element .'_link', '');
return _gallery_block_get_block($plugin, $plugin_block, $params, ($num_cols > 1) ? $num_cols : NULL);
$extra = ($num_cols > 1) ? array('num_cols' => $num_cols) : array();
return _gallery_block_get_block($plugin, $plugin_block, $params, $extra);
}
/**
......
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