summaryrefslogtreecommitdiff
path: root/rt/sbin/rt-shredder
diff options
context:
space:
mode:
Diffstat (limited to 'rt/sbin/rt-shredder')
-rwxr-xr-xrt/sbin/rt-shredder8
1 files changed, 4 insertions, 4 deletions
diff --git a/rt/sbin/rt-shredder b/rt/sbin/rt-shredder
index 3a9db9d24..7c577bfa9 100755
--- a/rt/sbin/rt-shredder
+++ b/rt/sbin/rt-shredder
@@ -3,7 +3,7 @@
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@ -113,7 +113,7 @@ use warnings FATAL => 'all';
# fix lib paths, some may be relative
BEGIN {
require File::Spec;
- my @libs = ("lib", "local/lib");
+ my @libs = ("/opt/rt3/lib", "/opt/rt3/local/lib");
my $bin_path;
for my $lib (@libs) {
@@ -147,7 +147,7 @@ our %opt;
parse_args();
RT::Shredder::Init( %opt );
-my $shredder = new RT::Shredder;
+my $shredder = RT::Shredder->new;
{
my $plugin = eval { $shredder->AddDumpPlugin( Arguments => {
@@ -257,7 +257,7 @@ sub process_plugins
my @res;
foreach my $str( @{ $opt{'plugin'} } ) {
- my $plugin = new RT::Shredder::Plugin;
+ my $plugin = RT::Shredder::Plugin->new;
my( $status, $msg ) = $plugin->LoadByString( $str );
unless( $status ) {
print STDERR "Couldn't load plugin\n";