Hardcoded check for image block if a custom plugin specifies any blocktype, preventing installation + fix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Richard Mansfield |
Bug Description
I'm coding a new artefact plugin and I've found that if I specify anything at all in the get_block_types() function of the main artefact class, installation fails because I haven't got class PluginBlocktype
This comes from a loop in artefact_
foreach ($types as $type) {
// other stuff that's not relevant up to line 1168
if (!class_
throw new InstallationExc
}
}
The plugin class name needs to generated dynamically:
$pluginclassname = generate_
Changed in mahara: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
milestone: | none → 1.4.0 |
Changed in mahara: | |
assignee: | nobody → Richard Mansfield (richard-mansfield) |
Changed in mahara: | |
status: | Fix Committed → Fix Released |