[otrs-cvs] otrs/Kernel/System XML.pm,1.58,1.59

cvs-log at otrs.org cvs-log at otrs.org
Wed Jul 11 05:16:10 GMT 2007


Comments:
Update of /home/cvs/otrs/Kernel/System
In directory lancelot:/tmp/cvs-serv29328/Kernel/System

Modified Files:
	XML.pm 
Log Message:
Add MainObject to the needed object check.

Author: tr

Index: XML.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/XML.pm,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** XML.pm	31 May 2007 13:15:47 -0000	1.58
--- XML.pm	11 Jul 2007 05:16:05 -0000	1.59
***************
*** 51,54 ****
--- 51,58 ----
          LogObject => $LogObject,
      );
+     my $MainObject = Kernel::System::Main->new(
+         ConfigObject => $ConfigObject,
+         LogObject => $LogObject,
+     );
      my $XMLObject = Kernel::System::XML->new(
          ConfigObject => $ConfigObject,
***************
*** 73,77 ****
  
      # check all needed objects
!     foreach (qw(ConfigObject LogObject DBObject)) {
          die "Got no $_" if (!$Self->{$_});
      }
--- 77,81 ----
  
      # check all needed objects
!     foreach (qw(ConfigObject LogObject DBObject MainObject)) {
          die "Got no $_" if (!$Self->{$_});
      }


More information about the cvs-log mailing list