[Rt-commit] r4111 - in rt/branches/3.7-EXPERIMENTAL: . lib lib/RT/Interface/Web

ruz at bestpractical.com ruz at bestpractical.com
Wed Nov 16 19:54:49 EST 2005


Author: ruz
Date: Wed Nov 16 19:54:48 2005
New Revision: 4111

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT.pm.in
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Standalone.pm
Log:
 r1318 at cubic-pc:  cubic | 2005-11-17 03:58:18 +0300
  r1297 at cubic-pc:  cubic | 2005-11-16 21:15:33 +0300
  * we don't need ping dbh in ConnectToDatabase
  * fix "morning bug" in standalone handle
 


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT.pm.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT.pm.in	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT.pm.in	Wed Nov 16 19:54:48 2005
@@ -195,10 +195,8 @@
 
 sub ConnectToDatabase {
     require RT::Handle;
-    unless ($Handle && $Handle->dbh && $Handle->dbh->ping) {
-        $Handle = RT::Handle->new();
-    } 
-    $Handle->Connect();
+    $Handle = new RT::Handle unless $Handle;
+    $Handle->Connect;
 }
     
 =head2 InitLogging

Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Standalone.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Standalone.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Standalone.pm	Wed Nov 16 19:54:48 2005
@@ -27,6 +27,8 @@
 
     Module::Refresh->refresh if $RT::DevelMode;
 
+    RT::ConnectToDatabase();
+
     $self->SUPER::handle_request($cgi);
     $RT::Logger->crit($@) if ($@);
 


More information about the Rt-commit mailing list