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

ruz at bestpractical.com ruz at bestpractical.com
Fri Jan 20 07:29:21 EST 2006


Author: ruz
Date: Fri Jan 20 07:29:16 2006
New Revision: 4421

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

Log:
 r1636 at cubic-pc:  cubic | 2006-01-20 09:08:17 +0300
 * config options handling change


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Record.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Record.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Record.pm	Fri Jan 20 07:29:16 2006
@@ -69,18 +69,18 @@
 use RT::User;
 use RT::Attributes;
 use RT::Base;
-use DBIx::SearchBuilder::Record::Cachable;
 
 use strict;
 use vars qw/@ISA $_TABLE_ATTR/;
 
 @ISA = qw(RT::Base);
 
-if ($RT::DontCacheSearchBuilderRecords ) {
-    push (@ISA, 'DBIx::SearchBuilder::Record');
+if ( RT->Config->Get('DontCacheSearchBuilderRecords') ) {
+    require DBIx::SearchBuilder::Record;
+    push @ISA, 'DBIx::SearchBuilder::Record';
 } else {
-    push (@ISA, 'DBIx::SearchBuilder::Record::Cachable');
-
+    require DBIx::SearchBuilder::Record::Cachable;
+    push @ISA, 'DBIx::SearchBuilder::Record::Cachable';
 }
 
 # {{{ sub _Init 
@@ -790,7 +790,7 @@
         #if the current attachment contains nulls and the
         #database doesn't support embedded nulls
 
-        if ( $RT::AlwaysUseBase64 or
+        if ( RT->Config->Get('AlwaysUseBase64') or
              ( !$RT::Handle->BinarySafeBLOBs ) && ( $Body =~ /\x00/ ) ) {
 
             # set a flag telling us to mimencode the attachment
@@ -1466,7 +1466,7 @@
     if ( defined $args{'TimeTaken'} ) {
         $self->_UpdateTimeTaken( $args{'TimeTaken'} );
     }
-    if ( $RT::UseTransactionBatch and $transaction ) {
+    if ( RT->Config->Get('UseTransactionBatch') and $transaction ) {
 	    push @{$self->{_TransactionBatch}}, $trans;
     }
     return ( $transaction, $msg, $trans );


More information about the Rt-commit mailing list