[Rt-commit] r11099 - rt/branches/3.8-TESTING/lib/RT/Interface/Web
ruz at bestpractical.com
ruz at bestpractical.com
Tue Mar 18 11:02:35 EDT 2008
Author: ruz
Date: Tue Mar 18 11:02:33 2008
New Revision: 11099
Modified:
rt/branches/3.8-TESTING/lib/RT/Interface/Web/Standalone.pm
Log:
* install mode
Modified: rt/branches/3.8-TESTING/lib/RT/Interface/Web/Standalone.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Interface/Web/Standalone.pm (original)
+++ rt/branches/3.8-TESTING/lib/RT/Interface/Web/Standalone.pm Tue Mar 18 11:02:33 2008
@@ -67,6 +67,12 @@
return RT->Config->Get('MasonParameters');
}
+sub install_mode {
+ my $self = shift;
+ $self->{'rt_install_mode'} = shift if @_;
+ return $self->{'rt_install_mode'};
+}
+
sub handle_request {
my $self = shift;
@@ -74,7 +80,7 @@
Module::Refresh->refresh if RT->Config->Get('DevelMode');
- RT::ConnectToDatabase();
+ RT::ConnectToDatabase() unless $self->install_mode;
$self->SUPER::handle_request($cgi);
$RT::Logger->crit($@) if ($@);
More information about the Rt-commit
mailing list