diff options
author | mkanat%bugzilla.org <> | 2009-12-31 13:37:48 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-12-31 13:37:48 +0100 |
commit | 958e1a758168b4908bcdd237518ab85b93d7e1bb (patch) | |
tree | 38c132c3c085445da227f608a6e8c405060cc5ec /Bugzilla/Install.pm | |
parent | 26f912882a8e99d75d779aeb455f79abf894159b (diff) | |
download | bugzilla-958e1a758168b4908bcdd237518ab85b93d7e1bb.tar.gz bugzilla-958e1a758168b4908bcdd237518ab85b93d7e1bb.tar.xz |
Bug 519858 - Move uncommonly used parameters out of the "Required" section and into a "General" and "Advanced" section
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Install.pm')
-rw-r--r-- | Bugzilla/Install.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm index a32063ca7..10804ab70 100644 --- a/Bugzilla/Install.pm +++ b/Bugzilla/Install.pm @@ -27,6 +27,7 @@ package Bugzilla::Install; use strict; use Bugzilla::Component; +use Bugzilla::Config qw(:admin); use Bugzilla::Constants; use Bugzilla::Error; use Bugzilla::Group; @@ -310,6 +311,12 @@ sub make_admin { $group_insert->execute($user->id, $editusers->id, 0, GRANT_DIRECT); }; + # If there is no maintainer set, make this user the maintainer. + if (!Bugzilla->params->{'maintainer'}) { + SetParam('maintainer', $user->email); + write_params(); + } + print "\n", get_text('install_admin_created', { user => $user }), "\n"; } |