]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 304936: checksetup.pl should inform the user to go to editparams.cgi if they...
authormozilla%colinogilvie.co.uk <>
Sun, 20 Nov 2005 07:55:26 +0000 (07:55 +0000)
committermozilla%colinogilvie.co.uk <>
Sun, 20 Nov 2005 07:55:26 +0000 (07:55 +0000)
Patch by Colin Ogilvie <colin.ogilvie@gmail.com>, r=LpSolit, a=justdave

checksetup.pl

index 8a54ea7228cf4e49915157deb7e00ab1a0001e39..3f378efd78f6ee60ff97d8052c99594fdf0963c8 100755 (executable)
@@ -4550,4 +4550,21 @@ $dbh->do("UPDATE components " .
 
 unlink "$datadir/versioncache";
 
+# Check if the default parameter for urlbase is still set, and if so, give
+# notification that they should go and visit editparams.cgi 
+
+my @params = Bugzilla::Config::Core::get_param_list();
+my $urlbase_default = '';
+foreach my $item (@params) {
+    next unless $item->{'name'} eq 'urlbase';
+    $urlbase_default = $item->{'default'};
+    last;
+}
+
+if (Param('urlbase') eq $urlbase_default) {
+    print "Now that you have installed Bugzilla, you should visit the \n" .
+          "'Parameters' page (linked in the footer of the Administrator \n" .
+          "account) to ensure it is set up as you wish - this includes \n" .
+          "setting the 'urlbase' option to the correct url.\n" unless $silent;
+}
 ################################################################################