Commit e0c34bf7 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix hardcoded blocktype class name in artefact installation sanity check (bug #639636)


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 5824a80a
......@@ -1180,7 +1180,7 @@ function artefact_check_plugin_sanity($pluginname) {
}
$types = call_static_method($classname, 'get_block_types');
foreach ($types as $type) {
$pluginclassname = generate_class_name('blocktype', 'image');
$pluginclassname = generate_class_name('blocktype', $type);
if (get_config('installed')) {
if (table_exists(new XMLDBTable('blocktype_installed')) && $taken = get_record_select('blocktype_installed',
'name = ? AND artefactplugin != ? ',
......
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