[LON-CAPA-cvs] cvs: loncom /configuration Configuration.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 01 Apr 2004 15:26:04 -0000


albertel		Thu Apr  1 10:26:04 2004 EDT

  Modified files:              
    /loncom/configuration	Configuration.pm 
  Log:
  - style police
  
  
Index: loncom/configuration/Configuration.pm
diff -u loncom/configuration/Configuration.pm:1.11 loncom/configuration/Configuration.pm:1.12
--- loncom/configuration/Configuration.pm:1.11	Tue Jul 22 15:21:10 2003
+++ loncom/configuration/Configuration.pm	Thu Apr  1 10:26:04 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Configuration file reader
 #
-# $Id: Configuration.pm,v 1.11 2003/07/22 19:21:10 matthew Exp $
+# $Id: Configuration.pm,v 1.12 2004/04/01 15:26:04 albertel Exp $
 #
 #
 # Copyright Michigan State University Board of Trustees
@@ -34,7 +34,7 @@
 
 package LONCAPA::Configuration;
 
-$VERSION = sprintf("%d.%02d", q$Revision: 1.11 $ =~ /(\d+)\.(\d+)/);
+$VERSION = sprintf("%d.%02d", q$Revision: 1.12 $ =~ /(\d+)\.(\d+)/);
 
 use strict;
 
@@ -43,28 +43,24 @@
 # ------------------- Subroutine read_conf: read LON-CAPA server configuration.
 # This subroutine reads PerlSetVar values out of specified web server
 # configuration files.
-sub read_conf
-  {
+sub read_conf {
     my (@conf_files)=@_;
     my %perlvar;
-    foreach my $filename (@conf_files,'loncapa_apache.conf')
-      {
+    foreach my $filename (@conf_files,'loncapa_apache.conf') {
 	open(CONFIG,'<'.$confdir.$filename) or
 	    die("Can't read $confdir$filename");
-	while (my $configline=<CONFIG>)
-	  {
-	    if ($configline =~ /^[^\#]*PerlSetVar/)
-	      {
+	while (my $configline=<CONFIG>) {
+	    if ($configline =~ /^[^\#]*PerlSetVar/) {
 		my ($unused,$varname,$varvalue)=split(/\s+/,$configline);
 		chomp($varvalue);
 		$perlvar{$varname}=$varvalue;
-	      }
-	  }
+	    }
+	}
 	close(CONFIG);
-      }
+    }
     my $perlvarref=\%perlvar;
     return ($perlvarref);
-  }
+}
 
 #---------------------- Subroutine read_hosts: Read a LON-CAPA hosts.tab
 # formatted configuration file.