Commit 619f3cba authored by Nigel McNie's avatar Nigel McNie
Browse files

Pass everything we know about the blockinstanced to...


Pass everything we know about the blockinstanced to import_create_blockinstance, to get around retarded PHP limitations.

Static methods apparently don't know what class they're associated with
when they're called. Lame.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent a12d1063
......@@ -1568,7 +1568,7 @@ class View {
$row = 1;
foreach ($column as $blockinstance) {
safe_require('blocktype', $blockinstance['type']);
$bi = call_static_method(generate_class_name('blocktype', $blockinstance['type']), 'import_create_blockinstance', $blockinstance['config']);
$bi = call_static_method(generate_class_name('blocktype', $blockinstance['type']), 'import_create_blockinstance', $blockinstance);
if ($bi) {
$bi->set('title', $blockinstance['title']);
$bi->set('column', $col);
......
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