From 1271f8d95c86c189a3b66ce8247f69682177ea14 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 22 Aug 2006 04:27:41 +0000 Subject: Bug 349361: Implement a Welcome page for admins on a fresh installation - Patch by Frédéric Buclin r=wurblzap a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.cgi | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'index.cgi') 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(); } -- cgit v1.2.3-24-g4f1b