Skip to content

Commit

Permalink
When manually checking for updates, don't link to the installer downl…
Browse files Browse the repository at this point in the history
…oad file, but to the update info page instead.
  • Loading branch information
mherger committed Apr 19, 2016
1 parent 3a42718 commit e45a428
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Slim/Web/Settings/Server/Software.pm
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package Slim::Web::Settings::Server::Software;

# $Id: Software.pm 15258 2007-12-13 15:29:14Z mherger $

# Logitech Media Server Copyright 2001-2011 Logitech.
# Logitech Media Server Copyright 2001-2016 Logitech.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License,
# version 2.
Expand Down Expand Up @@ -48,10 +46,10 @@ sub handler {
my $info = shift;

if ($info =~ /^http.*(\d+\.\d+\.\d+)/) {
$info = Slim::Utils::Strings::string('SERVER_UPDATE_AVAILABLE', $1, $info)
$info = sprintf('<a href="%supdateinfo.html" target="browser">%s</a>', $paramRef->{webroot}, Slim::Utils::Strings::string('SERVER_UPDATE_AVAILABLE_SHORT'));
}
elsif (!$info) {
$info = Slim::Utils::Strings::clientString($client, 'CONTROLPANEL_NO_UPDATE_AVAILABLE')
$info = Slim::Utils::Strings::string('CONTROLPANEL_NO_UPDATE_AVAILABLE')
}

$paramRef->{'warning'} = $info;
Expand Down

0 comments on commit e45a428

Please sign in to comment.