]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 557806: When setting the upgrade_notification parameter, an error should be throw...
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 7 Apr 2010 14:35:51 +0000 (16:35 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 7 Apr 2010 14:35:51 +0000 (16:35 +0200)
r=glob a=LpSolit

Bugzilla/Config/Common.pm

index 6924761f35841d188129922ce472a6a9daa197c7..7416b17942d7f56417f59c64b7abf6937e10bc09 100644 (file)
@@ -334,6 +334,10 @@ sub check_notification {
                "about the next stable release, you should select " .
                "'latest_stable_release' instead";
     }
+    if ($option ne 'disabled' && !Bugzilla->feature('updates')) {
+        return "Some Perl modules are missing to get notifications about " .
+               "new releases. See the output of checksetup.pl for more information";
+    }
     return "";
 }
 
@@ -347,7 +351,8 @@ sub check_smtp_auth {
 }
 
 sub check_theschwartz_available {
-    if (!eval { require TheSchwartz; require Daemon::Generic; }) {
+    my $use_queue = shift;
+    if ($use_queue && !Bugzilla->feature('jobqueue')) {
         return "Using the job queue requires that you have certain Perl"
                . " modules installed. See the output of checksetup.pl"
                . " for more information";