[Rt-commit] r4423 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Fri Jan 20 07:30:27 EST 2006


Author: ruz
Date: Fri Jan 20 07:30:25 2006
New Revision: 4423

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Session.pm
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Standalone.pm

Log:
 r1638 at cubic-pc:  cubic | 2006-01-20 09:11:38 +0300
 * config options handling change


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Session.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Session.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Session.pm	Fri Jan 20 07:30:25 2006
@@ -28,7 +28,7 @@
 
 sub Class {
     no warnings 'once';
-    my $class = $RT::WebSessionClass || $backends{$RT::DatabaseType} || 'Apache::Session::File';
+    my $class = RT->Config->Get('WebSessionClass') || $backends{RT->Config->Get('DatabaseType')} || 'Apache::Session::File';
     eval "require $class";
     die $@ if $@;
     return $class;
@@ -57,7 +57,7 @@
 
 sub Attributes {
 
-    return $_[0]->Backends->{$RT::DatabaseType} ? {
+    return $_[0]->Backends->{RT->Config->Get('DatabaseType')} ? {
             Handle     => $RT::Handle->dbh,
             LockHandle => $RT::Handle->dbh,
         } : {

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	Fri Jan 20 07:30:25 2006
@@ -17,7 +17,7 @@
 } 
 
 sub default_mason_config {
-    return @RT::MasonParameters;
+    return RT->Config->Get('MasonParameters');
 } 
 
 sub handle_request {
@@ -25,7 +25,7 @@
     my $self = shift;
     my $cgi = shift;
 
-    Module::Refresh->refresh if $RT::DevelMode;
+    Module::Refresh->refresh if RT->Config->Get('DevelMode');
 
     RT::ConnectToDatabase();
 


More information about the Rt-commit mailing list