starting to work...
[freeside.git] / rt / sbin / rt-shredder.in
index 946121c..c52116f 100755 (executable)
@@ -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)
@@ -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";