Skip to content

Commit

Permalink
config options handling change
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/rt/branches/3.7-EXPERIMENTAL@4421 e417ac7c-1bcc-0310-8ffa-8f5827389a85
  • Loading branch information
ruz committed Jan 20, 2006
1 parent 51bd1a4 commit e252f7f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/RT/Record.pm
Expand Up @@ -69,18 +69,18 @@ use RT::Date;
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
Expand Down Expand Up @@ -790,7 +790,7 @@ sub _EncodeLOB {
#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
Expand Down Expand Up @@ -1466,7 +1466,7 @@ sub _NewTransaction {
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 );
Expand Down

0 comments on commit e252f7f

Please sign in to comment.