aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authordedeibel2018-12-30 15:46:21 +0100
committerdedeibel2018-12-30 15:46:21 +0100
commit221c7ff3a705c0dd642480686074270a62094ec1 (patch)
tree5893d92f98c182336c1c01bcdf1ae42387b9c057 /model
parent796904e432105732c6c2a7d5533ed2afb5060fd0 (diff)
Added short display name feature for longer rooms / schedule and mobile view
Diffstat (limited to 'model')
-rw-r--r--model/Room.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/model/Room.php b/model/Room.php
index 21a05a9..cfc14c1 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -67,6 +67,16 @@ class Room
return $this->getConference()->get('ROOMS.'.$this->getSlug().'.DISPLAY', $this->getSlug());
}
+ public function getDisplayShort() {
+ $display_short = $this->getConference()->get('ROOMS.'.$this->getSlug().'.DISPLAY_SHORT', $this->getSlug());
+ if (empty($display_short)) {
+ return $this->getDisplay();
+ }
+ else {
+ return $display_short;
+ }
+ }
+
public function hasStereo() {