[Rt-commit] r14077 - in rtfm/trunk: .

falcone at bestpractical.com falcone at bestpractical.com
Mon Jul 14 13:21:40 EDT 2008


Author: falcone
Date: Mon Jul 14 13:21:38 2008
New Revision: 14077

Modified:
   rtfm/trunk/   (props changed)
   rtfm/trunk/html/Callbacks/RTFM/Elements/MessageBox/Default

Log:
 r35524 at ketch:  falcone | 2008-07-14 12:12:41 -0400
 * switch away from explicit version checking


Modified: rtfm/trunk/html/Callbacks/RTFM/Elements/MessageBox/Default
==============================================================================
--- rtfm/trunk/html/Callbacks/RTFM/Elements/MessageBox/Default	(original)
+++ rtfm/trunk/html/Callbacks/RTFM/Elements/MessageBox/Default	Mon Jul 14 13:21:38 2008
@@ -79,9 +79,9 @@
         Article => $article, Ticket => $Ticket
     );
 
-    # if we're on 3.8 and using the javascript MessageBox apply the
-    # escapse that the JS usually applies in HeaderJavascript.
-    if ($RT::VERSION =~ /^3\.8/) {
+    # if we're on 3.8 or higher and using the javascript MessageBox apply the
+    # escapse that the JS usually applies in the HeaderJavascript template.
+    if ( RT->can('Config') && RT->Config->can('Get') ) {
         if (RT->Config->Get('MessageBoxRichText',  $session{'CurrentUser'})) {
             $formatted_article =~ s/>/>/g;
             $formatted_article =~ s/</&lt;/g;


More information about the Rt-commit mailing list