aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorMaZderMind2015-12-09 21:46:46 +0100
committerMaZderMind2015-12-09 21:46:46 +0100
commit50c5c14865b7cbc9b9dc4bd5df01b4d71f77d5ae (patch)
tree87fa89c01c90a023a4ae21ee2b64eafb82b689e4 /model
parent13bcfcd6f0b7c13bdbd60d928099b0d42d4ca6c6 (diff)
Rename 'Music' to 'Radio' on all public places
Diffstat (limited to 'model')
-rw-r--r--model/RoomSelection.php3
-rw-r--r--model/RoomTab.php10
-rw-r--r--model/Stream.php4
3 files changed, 16 insertions, 1 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;