[Rt-commit] r9073 - in rt/branches/3.7-EXPERIMENTAL: .

sartak at bestpractical.com sartak at bestpractical.com
Mon Sep 17 16:01:28 EDT 2007


Author: sartak
Date: Mon Sep 17 16:01:27 2007
New Revision: 9073

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Handler.pm

Log:
 r42762 at onn:  sartak | 2007-09-17 16:01:09 -0400
 Wrap GPG key flush in an if GPG is enabled check (clkao++)


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Handler.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Handler.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Handler.pm	Mon Sep 17 16:01:27 2007
@@ -209,8 +209,10 @@
     require RT::Action::SendEmail;
     RT::Action::SendEmail->CleanSlate;
     
-    require RT::Crypt::GnuPG;
-    RT::Crypt::GnuPG::UseKeyForEncryption();
+    if (RT->Config->Get('GnuPG')->{'Enable'}) {
+        require RT::Crypt::GnuPG;
+        RT::Crypt::GnuPG::UseKeyForEncryption();
+    }
 }
 # }}}
 


More information about the Rt-commit mailing list