Commit 3d161f36 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Move feedback activity type to comment plugin before installing the plugin


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 06bbbac3
......@@ -1439,6 +1439,13 @@ function xmldb_core_upgrade($oldversion=0) {
(author IS NULL AND authorname IS NOT NULL)
)');
// Move feedback activity type to artefact plugin
execute_sql("
UPDATE {activity_type}
SET plugintype = 'artefact', pluginname = 'comment'
WHERE name = 'feedback'
");
// Install the comment artefact
if ($data = check_upgrades('artefact.comment')) {
upgrade_plugin($data);
......@@ -1520,13 +1527,6 @@ function xmldb_core_upgrade($oldversion=0) {
$table = new XMLDBTable('artefact_feedback');
drop_table($table);
// Move feedback activity type to artefact plugin
execute_sql("
UPDATE {activity_type}
SET plugintype = 'artefact', pluginname = 'comment'
WHERE name = 'feedback'
");
// Add site setting for anonymous comments
set_config('anonymouscomments', 1);
}
......
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