summaryrefslogtreecommitdiffstats
path: root/index.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-08-22 06:27:41 +0200
committerlpsolit%gmail.com <>2006-08-22 06:27:41 +0200
commit1271f8d95c86c189a3b66ce8247f69682177ea14 (patch)
tree41bbe03dbc81a2ea1227236e33b5934fdf905577 /index.cgi
parentcfbe7958a0559bc20edfa939320646457a35e21b (diff)
downloadbugzilla-1271f8d95c86c189a3b66ce8247f69682177ea14.tar.gz
bugzilla-1271f8d95c86c189a3b66ce8247f69682177ea14.tar.xz
Bug 349361: Implement a Welcome page for admins on a fresh installation - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=myk
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.cgi b/index.cgi
index 9c3b6be96..7d1525b58 100755
--- a/index.cgi
+++ b/index.cgi
@@ -57,6 +57,13 @@ my $vars = {};
print $cgi->header();
if ($user->in_group('admin')) {
+ # If 'urlbase' is not set, display the Welcome page.
+ unless (Bugzilla->params->{'urlbase'}) {
+ $template->process('welcome-admin.html.tmpl')
+ || ThrowTemplateError($template->error());
+ exit;
+ }
+ # Inform the administrator about new releases, if any.
$vars->{'release'} = Bugzilla::Update::get_notifications();
}