Commit 965d46e8 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Install profile views from template on fresh installs

parent a26c200d
......@@ -586,6 +586,8 @@ function core_install_lastcoredata_defaults() {
insert_record('usr', $user);
}
install_system_profile_view();
// Insert the admin user
$user = new StdClass;
$user->username = 'admin';
......
......@@ -1218,6 +1218,7 @@ function install_default_profile_view($eventdata) {
*/
function install_system_profile_view() {
require_once(get_config('libroot') . 'view.php');
require_once(get_config('docroot') . 'blocktype/lib.php');
$view = new View(0, array(
'type' => 'profile',
'owner' => 0,
......
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