[Rt-commit] rt branch, development, updated. 468524d98bc91aebfd89122e3cbeb5f0d87b7278
Thomas Sibley
trs at bestpractical.com
Wed Jul 21 11:52:50 EDT 2010
The branch, development has been updated
via 468524d98bc91aebfd89122e3cbeb5f0d87b7278 (commit)
from 441e78f45a33171dc6fce184bbe098f4dda8ee93 (commit)
Summary of changes:
lib/RT/View/SetupWizard.pm | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
- Log -----------------------------------------------------------------
commit 468524d98bc91aebfd89122e3cbeb5f0d87b7278
Author: Thomas Sibley <trs at bestpractical.com>
Date: Wed Jul 21 11:54:23 2010 -0400
Turn off Admin and Devel modes as well when we kill SetupMode
diff --git a/lib/RT/View/SetupWizard.pm b/lib/RT/View/SetupWizard.pm
index ef82a97..2a7518b 100644
--- a/lib/RT/View/SetupWizard.pm
+++ b/lib/RT/View/SetupWizard.pm
@@ -220,9 +220,6 @@ template 'web' => setup_page {
$self->rt_config_field( field => [qw( web_path logo_url )] );
};
-# XXX TODO: step for checking and turning off Admin, Devel, and Setup modes?
-# LogLevel?
-
template 'done' => setup_page {
my $self = shift;
@@ -238,22 +235,25 @@ EOT
ol {{ class is 'whatsnext' };
li { _("Review the config generated for you in etc/site_config.yml") }
- li { _("If you haven't already, setup RT to run under your web server using Plack, FastCGI, or mod_perl") }
+ li { _("If you haven't already, setup your web server to run RT using Plack, FastCGI, or mod_perl") }
li { _("Configure your mail server to hand off email to RT's mailgate") }
};
form_next_page( url => '/' );
- my $action = $self->config_field(
- field => 'SetupMode',
- context => '/framework',
- message => 'Setup Mode is now turned off.',
- value_args => {
- render_as => 'Hidden',
- default_value => 0,
- },
- );
-
+ # Turn off all the junk we don't want for production
+ for my $mode (qw( Setup Devel Admin )) {
+ $self->config_field(
+ field => $mode."Mode",
+ context => '/framework',
+ message => "$mode Mode is now turned off.",
+ value_args => {
+ render_as => 'Hidden',
+ default_value => 0,
+ },
+ );
+ }
+
form_submit(
label => 'Turn off Setup Mode and go to RT',
class => 'finish'
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list