Context.pm extraneous variable removed.
authorJoe Atzberger <joe.atzberger@liblime.com>
Wed, 14 Nov 2007 01:02:36 +0000 (19:02 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 16 Nov 2007 19:24:43 +0000 (13:24 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Context.pm

index 34e8b17..3c9d9a4 100644 (file)
@@ -187,11 +187,9 @@ Returns undef in case of error.
 
 =cut
 
-sub read_config_file {
-    my $fname = shift;    # Config file to read
-    my $retval = {};    # Return value: ref-to-hash holding the configuration
-    my $koha = XMLin($fname, keyattr => ['id'],forcearray => ['listen', 'server', 'serverinfo']);
-    return $koha;
+sub read_config_file {         # Pass argument naming config file to read
+    my $koha = XMLin(shift, keyattr => ['id'], forcearray => ['listen', 'server', 'serverinfo']);
+    return $koha;                      # Return value: ref-to-hash holding the configuration
 }
 
 # db_scheme2dbi