From 50c5c14865b7cbc9b9dc4bd5df01b4d71f77d5ae Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 9 Dec 2015 21:46:46 +0100 Subject: Rename 'Music' to 'Radio' on all public places --- model/RoomSelection.php | 3 +++ model/RoomTab.php | 10 +++++++++- model/Stream.php | 4 ++++ template/assemblies/switcher/music.phtml | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/model/RoomSelection.php b/model/RoomSelection.php index c163321..9f0b16d 100644 --- a/model/RoomSelection.php +++ b/model/RoomSelection.php @@ -40,6 +40,9 @@ class RoomSelection case 'hd': return strtoupper($this->getSelection()); + case 'music': + return 'Radio'; + default: return ucfirst($this->getSelection()); } diff --git a/model/RoomTab.php b/model/RoomTab.php index d4f781b..f0338d2 100644 --- a/model/RoomTab.php +++ b/model/RoomTab.php @@ -29,6 +29,14 @@ class RoomTab public function getDisplay() { - return ucfirst($this->getTab()); + $tab = $this->getTab(); + switch($tab) + { + case 'music': + return 'Radio'; + + default: + return ucfirst($tab); + } } } diff --git a/model/Stream.php b/model/Stream.php index f9488a0..d2baa28 100644 --- a/model/Stream.php +++ b/model/Stream.php @@ -88,6 +88,10 @@ class Stream $display .= 'SD Video'; break; + case 'music': + $display .= 'Radio'; + break; + default: $display .= ucfirst($this->getSelection()); break; diff --git a/template/assemblies/switcher/music.phtml b/template/assemblies/switcher/music.phtml index 2767fe8..9c96f83 100644 --- a/template/assemblies/switcher/music.phtml +++ b/template/assemblies/switcher/music.phtml @@ -10,7 +10,7 @@ - live music + live radio -- cgit v1.2.3