[Rt-commit] r19980 - rt/3.999/trunk/lib/RT

sartak at bestpractical.com sartak at bestpractical.com
Tue Jun 16 00:22:21 EDT 2009


Author: sartak
Date: Tue Jun 16 00:22:21 2009
New Revision: 19980

Modified:
   rt/3.999/trunk/lib/RT/Dispatcher.pm

Log:
Display the usual index if we are not in SetupMode

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 16 00:22:21 2009
@@ -155,12 +155,13 @@
 };
 
 on qr{^/$} => run {
-    my $wizard_plugin = Jifty->find_plugin('Jifty::Plugin::SetupWizard')
-        or return;
+    if (Jifty->config->framework('SetupMode')) {
+        Jifty->find_plugin('Jifty::Plugin::SetupWizard')
+            or die "The SetupWizard plugin needs to be used with SetupMode";
 
-    if ($wizard_plugin->{activated}) {
         show '/__jifty/admin/setupwizard';
     }
+    show '/index.html';
 };
 
 on qr{^/Dashboards/(\d+)} => run {


More information about the Rt-commit mailing list