[Slim-Checkins] r11763 - /trunk/server/Slim/Web/Settings.pm

kdf at svn.slimdevices.com kdf at svn.slimdevices.com
Sat Apr 14 01:05:35 PDT 2007


Author: kdf
Date: Sat Apr 14 01:05:35 2007
New Revision: 11763

URL: http://svn.slimdevices.com?rev=11763&view=rev
Log:
Bug: n/a
Description: grab prefs from client namespace if it is a client prefs subclass


Modified:
    trunk/server/Slim/Web/Settings.pm

Modified: trunk/server/Slim/Web/Settings.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Web/Settings.pm?rev=11763&r1=11762&r2=11763&view=diff
==============================================================================
--- trunk/server/Slim/Web/Settings.pm (original)
+++ trunk/server/Slim/Web/Settings.pm Sat Apr 14 01:05:35 2007
@@ -62,7 +62,7 @@
 
 	# Handle the simple case where no validation is needed. Or we can do
 	# programatic validation via the prefs rework.
-	my @prefs = $class->prefs;
+	my @prefs = $class->needsClient ? $class->prefs($client) : $class->prefs;
 
 	my $prefsClass = shift @prefs if (@prefs && blessed($prefs[0]));
 



More information about the checkins mailing list