[Rt-commit] r13428 - rt/3.8/trunk/share/html/Install

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Jun 19 14:24:07 EDT 2008


Author: sunnavy
Date: Thu Jun 19 14:24:06 2008
New Revision: 13428

Modified:
   rt/3.8/trunk/share/html/Install/autohandler

Log:
cleaned Install/autohandler, and we need to set up charset there too

Modified: rt/3.8/trunk/share/html/Install/autohandler
==============================================================================
--- rt/3.8/trunk/share/html/Install/autohandler	(original)
+++ rt/3.8/trunk/share/html/Install/autohandler	Thu Jun 19 14:24:06 2008
@@ -48,17 +48,20 @@
 <%flags>
 inherit => undef
 </%flags>
+
 <%init>
-RT::Interface::Web::Redirect(RT->Config->Get('WebURL')) unless (RT->InstallMode);
+
 if (RT->InstallMode) {
+    $r->content_type("text/html; charset=utf-8");
     require RT::Installer;
 
     $RT::Installer->{'CurrentUser'} = RT::CurrentUser->new();
     $RT::Installer->{Meta} = RT::Installer->Meta;
+    $m->call_next;
 }
 else {
-     RT::Interface::Web::Redirect(RT->Config->Get('WebURL'));
+    # redirect to login page if not in install mode
+    RT::Interface::Web::Redirect(RT->Config->Get('WebURL'))
 }
 </%init>
-<%$m->call_next()%>
 


More information about the Rt-commit mailing list