[Rt-commit] r12947 - in rt/branches/3.8-TESTING: share/html/Search/Elements

sartak at bestpractical.com sartak at bestpractical.com
Thu Jun 5 19:22:15 EDT 2008


Author: sartak
Date: Thu Jun  5 19:22:15 2008
New Revision: 12947

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/share/html/Search/Elements/Chart

Log:
 r61745 at onn:  sartak | 2008-06-05 19:21:04 -0400
 Display a message if GD is unavailable instead of an empty image (with plenty of errors)


Modified: rt/branches/3.8-TESTING/share/html/Search/Elements/Chart
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Search/Elements/Chart	(original)
+++ rt/branches/3.8-TESTING/share/html/Search/Elements/Chart	Thu Jun  5 19:22:15 2008
@@ -102,7 +102,11 @@
 
 <% loc('Query:') %>&nbsp;<% $Query %><br />
 
+% if (RT->Config->Get('DisableGD')) {
+<% loc('Graphical charts are not available.') %><br />
+% } else {
 <img src="<%RT->Config->Get('WebPath')%>/Search/Chart?<%$query_string|n%>" /><br />
+% }
 
 <table class="collection-as-table">
 <tr>


More information about the Rt-commit mailing list