GitHost.io will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at https://about.gitlab.com/gitlab-hosted/#githost-is-shutting-down-on-june-1st-2019

Commit 109be2cf authored by Mike Sheldon's avatar Mike Sheldon

Default to the community station if the user just hits 'Listen' without specifying a tag

parent 3b26cff7
...@@ -24,6 +24,11 @@ require_once('templating.php'); ...@@ -24,6 +24,11 @@ require_once('templating.php');
if (isset($_GET['tag'])) { if (isset($_GET['tag'])) {
$station = 'librefm://globaltags/' . $_GET['tag']; $station = 'librefm://globaltags/' . $_GET['tag'];
if(empty($_GET['tag'])) {
// The user's just hit 'listen' without selecting a tag
// so we default to the community station
$station = "librefm://community/loved";
}
} else if (isset($_GET['station'])) { } else if (isset($_GET['station'])) {
$station = $_GET['station']; $station = $_GET['station'];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment