[Rt-commit] r16312 - rt/branches/3.999-DANGEROUS/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Fri Oct 17 04:08:31 EDT 2008


Author: ruz
Date: Fri Oct 17 04:08:31 2008
New Revision: 16312

Modified:
   rt/branches/3.999-DANGEROUS/lib/RT/Dispatcher.pm

Log:
* use jifty's redirect

Modified: rt/branches/3.999-DANGEROUS/lib/RT/Dispatcher.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Dispatcher.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Dispatcher.pm	Fri Oct 17 04:08:31 2008
@@ -68,8 +68,9 @@
         if (   $path !~ RT->config->get('WebNoAuthRegex')
             && $path !~ m{^(/+)Install/} && $path !~ m{^/+log(in|out)} )
         {
-            RT::Interface::Web::redirect(
-                RT->config->get('WebURL') . "Install/index.html" );
+            Jifty->web->redirect(
+                RT->config->get('WebURL') . "Install/index.html"
+            );
         }
     }
 }
@@ -135,12 +136,12 @@
 
         # if the user is trying to access a ticket, redirect them
         if ( $path =~ '^(/+)Ticket/Display.html' && get('id') ) {
-            RT::Interface::Web::redirect( RT->config->get('WebURL') . "SelfService/Display.html?id=" . get('id') );
+            Jifty->web->redirect( RT->config->get('WebURL') . "SelfService/Display.html?id=" . get('id') );
         }
 
         # otherwise, drop the user at the SelfService default page
         elsif ( $path !~ '^(/+)SelfService/' ) {
-            RT::Interface::Web::redirect( RT->config->get('WebURL') . "SelfService/" );
+            Jifty->web->redirect( RT->config->get('WebURL') . "SelfService/" );
         }
     }
 


More information about the Rt-commit mailing list