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

ruz at bestpractical.com ruz at bestpractical.com
Fri Jul 25 05:15:10 EDT 2008


Author: ruz
Date: Fri Jul 25 05:13:47 2008
New Revision: 14506

Modified:
   rt/3.8/trunk/share/html/Install/index.html

Log:
* minor
* indent

Modified: rt/3.8/trunk/share/html/Install/index.html
==============================================================================
--- rt/3.8/trunk/share/html/Install/index.html	(original)
+++ rt/3.8/trunk/share/html/Install/index.html	Fri Jul 25 05:13:47 2008
@@ -49,7 +49,7 @@
 
 <& Elements/Errors, Errors => \@errors &>
 
-% if ( !$locked) {
+% return if $locked;
 
 <h1><% loc('What is RT?') %></h1>
 
@@ -74,46 +74,46 @@
 <input type="hidden" name="Run" value="1" />
 <& /Elements/Submit, Label => loc( "Let's go!") &>
 </form>
-% }
+
 </&>
 <%init>
 my @errors;
 my $locked;
-    my $file = File::Spec->catfile( $RT::EtcPath, 'RT_SiteConfig.pm' );
 
-    if ( ! -e $file ) {
-        # write a blank RT_SiteConfig.pm
-        open my $fh, '>', $file or die $!;
-        close $fh;
-    }
-    elsif ( ! -w $file ) {
-        $locked = 1;
+my $file = File::Spec->catfile( $RT::EtcPath, 'RT_SiteConfig.pm' );
+
+if ( ! -e $file ) {
+    # write a blank RT_SiteConfig.pm
+    open my $fh, '>', $file or die $!;
+    close $fh;
+}
+elsif ( ! -w $file ) {
+    $locked = 1;
+}
+
+if ( $locked ) {
+    push @errors, loc("Config file [_1] is locked", $file);
+}
+elsif ( $Run ) {
+    $RT::Installer->{InstallConfig} ||= {};
+    for my $field  (
+            qw/DatabaseType DatabaseName DatabaseHost DatabasePort
+            DatabaseUser DatabaseRequireSSL rtname
+            Organization Timezone CommentAddress CorrespondAddress 
+            SendmailPath WebDomain WebPort/
+    ) {
+        $RT::Installer->{InstallConfig}{$field} ||= RT->Config->Get($field);
     }
-    
-    if ( $locked ) {
-        push @errors, loc("Config file [_1] is locked", $file);
+
+    for my $field ( qw/OwnerEmail Password DatabasePassword DatabaseAdminPassword/ ) {
+        # stuff we don't want to keep null
+        $RT::Installer->{InstallConfig}{$field} = '';
     }
-    elsif ( $Run ) {
-        $RT::Installer->{InstallConfig} ||= {};
-        for my $field  ( qw/DatabaseType DatabaseName DatabaseHost DatabasePort
-                DatabaseUser DatabaseRequireSSL rtname
-                Organization Timezone CommentAddress CorrespondAddress 
-                SendmailPath WebDomain WebPort/ ) {
-            $RT::Installer->{InstallConfig}{$field} ||= RT->Config->Get($field);
-        }
-
-        for my $field ( qw/OwnerEmail Password DatabasePassword
-                DatabaseAdminPassword/ ) {
-            # stuff we don't want to keep null
-            $RT::Installer->{InstallConfig}{$field} = '';
-        }
-
-        RT::Interface::Web::Redirect(RT->Config->Get('WebURL') .  'Install/DatabaseType.html');
-    
-        }
+
+    RT::Interface::Web::Redirect(RT->Config->Get('WebURL') . 'Install/DatabaseType.html');
+}
 </%init>
 
 <%args>
 $Run => 0
 </%args>
-


More information about the Rt-commit mailing list