[Rt-commit] r19841 - rt/3.999/trunk/lib/RT
sartak at bestpractical.com
sartak at bestpractical.com
Tue Jun 2 18:56:13 EDT 2009
Author: sartak
Date: Tue Jun 2 18:56:13 2009
New Revision: 19841
Modified:
rt/3.999/trunk/lib/RT/Dispatcher.pm
Log:
Just show the setup wizard so the user sees no ugly /__jifty/admin url
Modified: rt/3.999/trunk/lib/RT/Dispatcher.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Dispatcher.pm (original)
+++ rt/3.999/trunk/lib/RT/Dispatcher.pm Tue Jun 2 18:56:13 2009
@@ -150,17 +150,16 @@
}
};
-before qr{^/$} => run {
+after qr/.*/ => run {
+ RT::Interface::Web::Handler::cleanup_request();
+};
+
+on qr{^/$} => run {
return unless Jifty->config->framework('AdminMode');
my $wizard_plugin = Jifty->find_plugin('Jifty::Plugin::SetupWizard')
or return;
- redirect '/__jifty/admin/setupwizard';
-};
-
-
-after qr/.*/ => run {
- RT::Interface::Web::Handler::cleanup_request();
+ show '/__jifty/admin/setupwizard';
};
on qr{^/Dashboards/(\d+)} => run {
More information about the Rt-commit
mailing list