[Rt-commit] r12851 - in rt/branches/3.8-TESTING: lib/RT/Graph
falcone at bestpractical.com
falcone at bestpractical.com
Tue Jun 3 15:29:38 EDT 2008
Author: falcone
Date: Tue Jun 3 15:29:37 2008
New Revision: 12851
Modified:
rt/branches/3.8-TESTING/ (props changed)
rt/branches/3.8-TESTING/lib/RT/Graph/Tickets.pm
Log:
r33712 at ketch: falcone | 2008-06-03 14:32:03 -0400
* don't load optional modules, this means tests pass
when you don't have GraphViz installed
Modified: rt/branches/3.8-TESTING/lib/RT/Graph/Tickets.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Graph/Tickets.pm (original)
+++ rt/branches/3.8-TESTING/lib/RT/Graph/Tickets.pm Tue Jun 3 15:29:37 2008
@@ -57,9 +57,14 @@
=cut
-use IPC::Run;
-use IPC::Run::SafeHandles;
-use GraphViz;
+unless ($RT::DisableGraphViz) {
+ require IPC::Run;
+ IPC::Run->import;
+ require IPC::Run::SafeHandles;
+ IPC::Run::SafeHandles->import;
+ require GraphViz;
+ GraphViz->import;
+}
our %ticket_status_style = (
new => { fontcolor => '#FF0000' },
More information about the Rt-commit
mailing list