Skip to content
GitLab
Menu
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
1bbe37d8
Commit
1bbe37d8
authored
Jan 18, 2007
by
Nigel McNie
Committed by
Nigel McNie
Jan 18, 2007
Browse files
Set the quota for the admin/root users on install
parent
b98874e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/upgrade.php
View file @
1bbe37d8
...
...
@@ -414,6 +414,7 @@ function core_install_defaults() {
$user
->
firstname
=
'System'
;
$user
->
lastname
=
'User'
;
$user
->
email
=
'root@example.org'
;
$user
->
quota
=
get_config_plugin
(
'artefact'
,
'file'
,
'defaultquota'
);
insert_record
(
'usr'
,
$user
);
// Insert the admin user
...
...
@@ -426,6 +427,7 @@ function core_install_defaults() {
$user
->
firstname
=
'Admin'
;
$user
->
lastname
=
'User'
;
$user
->
email
=
'admin@example.org'
;
$user
->
quota
=
get_config_plugin
(
'artefact'
,
'file'
,
'defaultquota'
);
$user
->
id
=
insert_record
(
'usr'
,
$user
,
'id'
,
true
);
set_profile_field
(
$user
->
id
,
'email'
,
$user
->
email
);
set_profile_field
(
$user
->
id
,
'firstname'
,
$user
->
firstname
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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