[Rt-commit] r5614 - in rt/branches/3.6-RELEASE: .
html/Ticket/Elements
jesse at bestpractical.com
jesse at bestpractical.com
Wed Jul 19 18:37:44 EDT 2006
Author: jesse
Date: Wed Jul 19 18:37:43 2006
New Revision: 5614
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/etc/RT_Config.pm.in
rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowTransactionAttachments
Log:
r14208 at pinglin: jesse | 2006-07-19 15:33:26 -0700
* Allow sites to disable the display of inline ticket images.
Modified: rt/branches/3.6-RELEASE/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/3.6-RELEASE/etc/RT_Config.pm.in (original)
+++ rt/branches/3.6-RELEASE/etc/RT_Config.pm.in Wed Jul 19 18:37:43 2006
@@ -444,6 +444,11 @@
Set($OldestTransactionsFirst, '1');
+# By default, RT shows images attached to incoming (and outgoing) ticket updates
+# inline. Set this variable to 0 if you'd like to disable that behaviour
+
+Set($ShowTransactionImages, 1);
+
# $HomepageComponents is an arrayref of allowed components on a user's
# customized homepage ("RT at a glance").
Modified: rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowTransactionAttachments
==============================================================================
--- rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowTransactionAttachments (original)
+++ rt/branches/3.6-RELEASE/html/Ticket/Elements/ShowTransactionAttachments Wed Jul 19 18:37:43 2006
@@ -151,7 +151,7 @@
}
# if it's an image, show it as an image
- elsif ( $message->ContentType =~ /^image\//i ) {
+ elsif ( $RT::ShowTransactionImages and $message->ContentType =~ /^image\//i ) {
$m->out('<img src="'
. $AttachPath . '/'
. $Transaction->Id . '/'
More information about the Rt-commit
mailing list