@@ -1479,6 +1479,16 @@ function xmldb_core_upgrade($oldversion=0) {
execute_sql("UPDATE {auth_instance} SET instancename = 'Internal' WHERE institution = 'mahara' AND authname = 'internal' AND instancename = 'internal'");
}
if($oldversion<2008121500){
// Make sure the system profile view is marked as a template and is
// allowed to be copied by everyone
execute_sql("UPDATE {view} SET template = 1 WHERE id = (SELECT id FROM {view} WHERE owner = 0 AND type = 'profile')");