[otrs-cvs] ImportExport/bin otrs.ImportExport.pl,1.3,1.4
"CVS commits notifications of OTRS.org" <[email protected]> Tue, 19 Mar 2013 16:12:54 +0000
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/ImportExport/bin
In directory lancelot:/tmp/cvs-serv714/bin
Modified Files:
otrs.ImportExport.pl
Log Message:
Fixed bug# 8764 - @ARGV encoding for command line scripts.
Author: ub
Index: otrs.ImportExport.pl
===================================================================
RCS file: /home/cvs/ImportExport/bin/otrs.ImportExport.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -2 -u -d -r1.3 -r1.4
--- otrs.ImportExport.pl 20 Nov 2012 19:09:39 -0000 1.3
+++ otrs.ImportExport.pl 19 Mar 2013 16:12:49 -0000 1.4
@@ -2,5 +2,5 @@
# --
# otrs.ImportExport.pl - import/export script
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -41,4 +41,16 @@
$VERSION = qw($Revision$) [1];
+# create common objects
+my %CommonObject;
+$CommonObject{ConfigObject} = Kernel::Config->new();
+$CommonObject{LogObject} = Kernel::System::Log->new(
+ LogPrefix => 'OTRS-ImportExport',
+ %CommonObject,
+);
+$CommonObject{EncodeObject} = Kernel::System::Encode->new(%CommonObject);
+$CommonObject{MainObject} = Kernel::System::Main->new(%CommonObject);
+$CommonObject{DBObject} = Kernel::System::DB->new(%CommonObject);
+$CommonObject{ImportExportObject} = Kernel::System::ImportExport->new(%CommonObject);
+
# get options
my %Opts;
@@ -48,5 +60,5 @@
print STDOUT "otrs.ImportExport.pl <Revision $VERSION> - an import/export tool\n";
- print STDOUT "Copyright (C) 2001-2012 OTRS AG, http://otrs.org/\n";
+ print STDOUT "Copyright (C) 2001-2013 OTRS AG, http://otrs.org/\n";
print STDOUT "\n";
print STDOUT "usage: otrs.ImportExport.pl -n <TemplateNumber> -a import|export ";
@@ -81,16 +93,4 @@
}
-# create common objects
-my %CommonObject;
-$CommonObject{ConfigObject} = Kernel::Config->new();
-$CommonObject{LogObject} = Kernel::System::Log->new(
- LogPrefix => 'OTRS-ImportExport',
- %CommonObject,
-);
-$CommonObject{EncodeObject} = Kernel::System::Encode->new(%CommonObject);
-$CommonObject{MainObject} = Kernel::System::Main->new(%CommonObject);
-$CommonObject{DBObject} = Kernel::System::DB->new(%CommonObject);
-$CommonObject{ImportExportObject} = Kernel::System::ImportExport->new(%CommonObject);
-
# get template data
my $TemplateData = $CommonObject{ImportExportObject}->TemplateGet(
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log