[otrs-cvs] FAQ/bin otrs.FAQImport.pl,1.1,1.2

"CVS commits notifications of OTRS.org" <[email protected]> Tue, 19 Mar 2013 15:34:09 +0000
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/FAQ/bin
In directory lancelot:/tmp/cvs-serv21566/bin

Modified Files:
	otrs.FAQImport.pl 
Log Message:
Fixed bug# 8764 - @ARGV encoding for command line scripts.

Author: ub

Index: otrs.FAQImport.pl
===================================================================
RCS file: /home/cvs/FAQ/bin/otrs.FAQImport.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -2 -u -d -r1.1 -r1.2
--- otrs.FAQImport.pl	2 Jan 2013 21:58:45 -0000	1.1
+++ otrs.FAQImport.pl	19 Mar 2013 15:34:04 -0000	1.2
@@ -44,4 +44,20 @@
 $VERSION = qw($Revision$) [1];
 
+# create common objects
+my %CommonObject;
+$CommonObject{UserID}       = 1;
+$CommonObject{ConfigObject} = Kernel::Config->new();
+$CommonObject{LogObject}    = Kernel::System::Log->new(
+    LogPrefix => 'OTRS-FAQImport',
+    %CommonObject,
+);
+$CommonObject{CSVObject}    = Kernel::System::CSV->new(%CommonObject);
+$CommonObject{EncodeObject} = Kernel::System::Encode->new(%CommonObject);
+$CommonObject{MainObject}   = Kernel::System::Main->new(%CommonObject);
+$CommonObject{DBObject}     = Kernel::System::DB->new(%CommonObject);
+$CommonObject{TimeObject}   = Kernel::System::Time->new(%CommonObject);
+$CommonObject{GroupObject}  = Kernel::System::Group->new(%CommonObject);
+$CommonObject{FAQObject}    = Kernel::System::FAQ->new(%CommonObject);
+
 # get options
 my %Opts;
@@ -72,20 +88,4 @@
 }
 
-# create common objects
-my %CommonObject;
-$CommonObject{UserID}       = 1;
-$CommonObject{ConfigObject} = Kernel::Config->new();
-$CommonObject{LogObject}    = Kernel::System::Log->new(
-    LogPrefix => 'OTRS-FAQImport',
-    %CommonObject,
-);
-$CommonObject{CSVObject}    = Kernel::System::CSV->new(%CommonObject);
-$CommonObject{EncodeObject} = Kernel::System::Encode->new(%CommonObject);
-$CommonObject{MainObject}   = Kernel::System::Main->new(%CommonObject);
-$CommonObject{DBObject}     = Kernel::System::DB->new(%CommonObject);
-$CommonObject{TimeObject}   = Kernel::System::Time->new(%CommonObject);
-$CommonObject{GroupObject}  = Kernel::System::Group->new(%CommonObject);
-$CommonObject{FAQObject}    = Kernel::System::FAQ->new(%CommonObject);
-
 print STDOUT "Read File $Opts{i}.\n";
 
---------------------------------------------------------------------
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