[wiaflos-devel] COMMIT - r278 - trunk/soap

svn at linuxrulz.org svn at linuxrulz.org
Mon Feb 16 16:20:23 GMT 2009


Author: nkukard
Date: 2009-02-16 16:20:23 +0000 (Mon, 16 Feb 2009)
New Revision: 278

Modified:
   trunk/soap/wiaflos-server
Log:
* Added compatibility from old => new Config::IniFiles


Modified: trunk/soap/wiaflos-server
===================================================================
--- trunk/soap/wiaflos-server	2009-02-16 15:59:29 UTC (rev 277)
+++ trunk/soap/wiaflos-server	2009-02-16 16:20:23 UTC (rev 278)
@@ -139,7 +139,15 @@
 		exit 1;
 	}
 	# Split off plugins
-	my @soap_plugins = split(/\s+/,$soap->{'plugins'});
+	my @soap_plugins;
+	if (ref($soap->{'plugins'}) eq "ARRAY") {
+		foreach my $plugin (@{$soap->{'plugins'}}) {
+			$plugin = s/\s+//;
+			push(@soap_plugins,$plugin);
+		}
+	} else {
+		@soap_plugins = split(/\s+/,$soap->{'plugins'});
+	}
 	$soap->{'plugins'} = \@soap_plugins;
 	# Set other stuff
 	$soap->{'on_action'} = \&Auth::checkAccess;



More information about the wiaflos-devel mailing list