[Rt-commit] r11855 - in rt/branches/3.8-TESTING: .

jesse at bestpractical.com jesse at bestpractical.com
Wed Apr 23 17:31:02 EDT 2008


Author: jesse
Date: Wed Apr 23 17:30:57 2008
New Revision: 11855

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/html/autohandler

Log:
 r30023 at 31b:  jesse | 2008-04-23 16:21:03 -0400
 * In "Install Mode", push the user to the installer page.
 


Modified: rt/branches/3.8-TESTING/html/autohandler
==============================================================================
--- rt/branches/3.8-TESTING/html/autohandler	(original)
+++ rt/branches/3.8-TESTING/html/autohandler	Wed Apr 23 17:30:57 2008
@@ -47,6 +47,18 @@
 %# END BPS TAGGED BLOCK }}}
 <%INIT>
 
+if (RT->InstallMode) {
+
+  if  ( $m->base_comp->path =~ RT->Config->Get('WebNoAuthRegex') ) {
+    $m->call_next();
+  }
+  elsif ( $m->request_comp->path !~ '^(/+)installation/' ) {
+    RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."/installation/index.html");
+    } else {
+        $m->call_next();
+    }
+}
+
 # Roll back any dangling transactions from a previous failed connection
 $RT::Handle->ForceRollback() if $RT::Handle->TransactionDepth;
 


More information about the Rt-commit mailing list