Commit 72f292ce authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Setting general pages to site default on upgrade (Bug #1283839)"

parents 7203648b 84981bcf
......@@ -3052,6 +3052,11 @@ function xmldb_core_upgrade($oldversion=0) {
$page->content = $sitecontentarray[$name];
$page->institution = $institution->name;
insert_record('site_content', $page);
$pageconfig = new stdClass();
$pageconfig->institution = $institution->name;
$pageconfig->field = 'sitepages_' . $name;
$pageconfig->value = 'mahara';
insert_record('institution_config', $pageconfig);
}
}
}
......
Supports Markdown
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