[Rt-commit] r11995 - rt/branches/3.8-TESTING/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Thu May 1 16:41:44 EDT 2008


Author: ruz
Date: Thu May  1 16:41:43 2008
New Revision: 11995

Modified:
   rt/branches/3.8-TESTING/lib/RT/Config.pm

Log:
* disable option if there is no module

Modified: rt/branches/3.8-TESTING/lib/RT/Config.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Config.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Config.pm	Thu May  1 16:41:43 2008
@@ -168,11 +168,12 @@
         Type            => 'SCALAR',
         PostLoadCheck   => sub {
             my $value = shift;
-            return unless $value;
+            return if $value;
             return if $INC{'GraphViz'};
             local $@;
             return if eval {require GraphViz; 1};
             warn "You've enabled GraphViz, but we couldn't load the module: $@";
+            $self->Set( DisableGraphViz => 1 );
         },
     },
     MailPlugins         => {
@@ -211,6 +212,8 @@
 
 =head2 InitConfig
 
+Do nothin right now.
+
 =cut
 
 sub InitConfig


More information about the Rt-commit mailing list