X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FCondition%2FBeforeDue.pm;h=73015bcc82f9bed295c616ff5bbba5700c30aaa3;hb=45d35d5739d05e602bc317739485693e0e9ff0b5;hp=cb19ccb5c98401005e6d1ebf1942cc143ed760b1;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/lib/RT/Condition/BeforeDue.pm b/rt/lib/RT/Condition/BeforeDue.pm index cb19ccb5c..73015bcc8 100644 --- a/rt/lib/RT/Condition/BeforeDue.pm +++ b/rt/lib/RT/Condition/BeforeDue.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -52,6 +52,7 @@ use base 'RT::Condition'; use RT::Date; use strict; +use warnings; sub IsApplicable { my $self = shift; @@ -65,7 +66,7 @@ sub IsApplicable { } my $elapse = $e{'d'} * 24*60*60 + $e{'h'} * 60*60 + $e{'m'} * 60 + $e{'s'}; - my $cur = new RT::Date( $RT::SystemUser ); + my $cur = RT::Date->new( RT->SystemUser ); $cur->SetToNow(); my $due = $self->TicketObj->DueObj; return (undef) if $due->Unix <= 0; @@ -78,9 +79,6 @@ sub IsApplicable { } } -eval "require RT::Condition::BeforeDue_Vendor"; -die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/BeforeDue_Vendor.pm}); -eval "require RT::Condition::BeforeDue_Local"; -die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/BeforeDue_Local.pm}); +RT::Base->_ImportOverlays(); 1;