Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
965d46e8
Commit
965d46e8
authored
Sep 17, 2008
by
Richard Mansfield
Browse files
Install profile views from template on fresh installs
parent
a26c200d
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/upgrade.php
View file @
965d46e8
...
...
@@ -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'
;
...
...
htdocs/lib/user.php
View file @
965d46e8
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment