Commit 93100de4 authored by Nigel McNie's avatar Nigel McNie
Browse files

Force the installation of the 'fileimagevideo' blocktype category the correct...

Force the installation of the 'fileimagevideo' blocktype category the correct way (using install_blocktype_categories()), so it doesn't fail if the category has already been created, as can happen if we are upgrading from 0.8.
parent a3c1eb6a
......@@ -830,10 +830,8 @@ function xmldb_core_upgrade($oldversion=0) {
WHERE name IN (\'file\', \'images\', \'multimedia\')'
);
insert_record('blocktype_category', array('name' => 'fileimagevideo'));
foreach ($blocktypes as $bt) {
insert_record('blocktype_installed_category', array('blocktype' => $bt, 'category' => 'fileimagevideo'));
}
// Force the install of the new 'fileimagevideo' blocktype
install_blocktype_categories();
}
if ($oldversion < 2008012401) {
......
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