[otrs-cvs] CVS: otrs/Kernel/Config Defaults.pm,1.234,1.235

cvs-log at otrs.org cvs-log at otrs.org
Wed Jun 14 20:00:13 CEST 2006


Update of /home/cvs/otrs/Kernel/Config
In directory lancelot:/tmp/cvs-serv20740/Kernel/Config

Modified Files:
	Defaults.pm 
Log Message:
Fixed bug #1206 - When no RELEASE file is available, no product and version is displaied and strange messages apear in the apache error log; using standard values in this case now


Index: Defaults.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Config/Defaults.pm,v
retrieving revision 1.234
retrieving revision 1.235
diff -C2 -r1.234 -r1.235
*** Defaults.pm	8 Jun 2006 06:55:43 -0000	1.234
--- Defaults.pm	14 Jun 2006 17:00:11 -0000	1.235
***************
*** 1695,1701 ****
          }
          else {
!             print STDERR "ERROR: Can't read $Self->{Home}/RELEASE: $!";
          }
      }
      # load config (again)
      $Self->Load();
--- 1695,1706 ----
          }
          else {
!             print STDERR "ERROR: Can't read $Self->{Home}/RELEASE: $!\n";
          }
      }
+     else {
+         print STDERR "ERROR: $Self->{Home}/RELEASE does not exist, using defaults!\n";
+         $Self->{Product} = 'OTRS';
+         $Self->{Version} = '(unknown)';
+     }
      # load config (again)
      $Self->Load();



More information about the cvs-log mailing list