[Slim-Checkins] r9420 - /trunk/server/Slim/Web/Pages/Home.pm

andy at svn.slimdevices.com andy at svn.slimdevices.com
Mon Sep 4 18:49:06 PDT 2006


Author: andy
Date: Mon Sep  4 18:49:05 2006
New Revision: 9420

URL: http://svn.slimdevices.com?rev=9420&view=rev
Log:
Create the Switch to SN link in init so it's not affected by other plugins

Modified:
    trunk/server/Slim/Web/Pages/Home.pm

Modified: trunk/server/Slim/Web/Pages/Home.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Web/Pages/Home.pm?rev=9420&r1=9419&r2=9420&view=diff
==============================================================================
--- trunk/server/Slim/Web/Pages/Home.pm (original)
+++ trunk/server/Slim/Web/Pages/Home.pm Mon Sep  4 18:49:05 2006
@@ -20,6 +20,8 @@
 	Slim::Web::HTTP::addPageFunction(qr/^home\.(?:htm|xml)/, sub {$class->home(@_)});
 	Slim::Web::HTTP::addPageFunction(qr/^index\.(?:htm|xml)/, sub {$class->home(@_)});
 	Slim::Web::HTTP::addPageFunction(qr/^squeezenetwork\.(?:htm|xml)/, sub {$class->squeezeNetwork(@_)});
+	
+	$class->addPageLinks("plugins", {'SQUEEZENETWORK_SWITCH' => 'squeezenetwork.html'});
 
 	$class->addPageLinks("help",{'GETTING_STARTED' => "html/docs/quickstart.html"});
 	$class->addPageLinks("help",{'PLAYER_SETUP' => "html/docs/ipconfig.html"});
@@ -52,10 +54,6 @@
 	if (!exists $Slim::Web::Pages::additionalLinks{"search"}) {
 		$class->addPageLinks("search", {'SEARCHMUSIC' => "livesearch.html"});
 		$class->addPageLinks("search", {'ADVANCEDSEARCH' => "advanced_search.html"});
-	}
-	
-	if (!exists $Slim::Web::Pages::additionalLinks{"plugins"}) {
-		$class->addPageLinks("plugins", {'SQUEEZENETWORK_SWITCH' => 'squeezenetwork.html'});
 	}
 
 	if (!exists $Slim::Web::Pages::additionalLinks{"help"}) {



More information about the checkins mailing list