We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d830618c authored by Mike Sheldon's avatar Mike Sheldon

Capitalise station names consistently

parent 0742dea6
......@@ -26,15 +26,15 @@ function radio_title_from_url($url) {
}
if(ereg('l(ast|ibre)fm://artist/(.*)', $url, $regs)) {
$artist = $regs[2];
return 'Libre.fm ' . $artist . ' Artist Radio';
return 'Libre.fm ' . ucwords($artist) . ' Artist Radio';
}
if(ereg('l(ast|ibre)fm://artist/(.*)/similarartists', $url, $regs)) {
$artist = $regs[2];
return 'Libre.fm ' . $artist . ' Similar Artist Radio';
return 'Libre.fm ' . ucwords($artist) . ' Similar Artist Radio';
}
if(ereg('l(ast|ibre)fm://user/(.*)/loved', $url, $regs)) {
$user = $regs[2];
return 'Libre.fm ' . $user . '\'s Loved Radio';
return 'Libre.fm ' . ucwords($user) . '\'s Loved Radio';
}
return 'FAILED';
......
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