diff options
author | MaZderMind | 2016-12-10 18:26:10 +0100 |
---|---|---|
committer | MaZderMind | 2016-12-10 18:26:10 +0100 |
commit | 51ee8234fa7d8c2fbda0705563ab724746dfe9ce (patch) | |
tree | f0da1effc9f55f2f75dc57fe1ba17419d559b45b /model/RoomSelection.php | |
parent | e4141027ad16565b95d64ea262e6909a64cd6e1f (diff) | |
parent | f6c0270d40f6730fe1e1820f2866b08792df1db6 (diff) |
Merge branch 'feature/27-unwind-global-config'
Diffstat (limited to 'model/RoomSelection.php')
-rw-r--r-- | model/RoomSelection.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/model/RoomSelection.php b/model/RoomSelection.php index 9f0b16d..9211c31 100644 --- a/model/RoomSelection.php +++ b/model/RoomSelection.php @@ -20,16 +20,18 @@ class RoomSelection public function getLink() { + $path = [$this->getRoom()->getConference()->getSlug(), $this->getRoom()->getSlug()]; + $selection = $this->getRoom()->getSelectionNames(); - if($selection[0] == $this->getSelection()) - return rawurlencode($this->getRoom()->getSlug()).'/'; + if($selection[0] != $this->getSelection()) + $path[] = $this->getSelection(); - return rawurlencode($this->getRoom()->getSlug()).'/'.rawurlencode($this->getSelection()).'/'; + return joinpath($path).url_params(); } public function getTranslatedLink() { - return $this->getLink().'translated/'; + return joinpath([$this->getLink(), 'translated']); } public function getDisplay() |