diff options
author | root | 2016-09-03 19:57:40 +0200 |
---|---|---|
committer | root | 2016-09-03 19:57:40 +0200 |
commit | e0dc97ff62bb77c7e943a28638c5da1b9d429577 (patch) | |
tree | e30650fe2d6b4b1884b889aa7812a17b1c4ab4d2 /model/Conference.php | |
parent | 7dd0823e93f9ddc25ccc59eff7ce6f5419962757 (diff) | |
parent | 4e8fed0b773ad33e50017f498d40440592b7c4ef (diff) |
Merge branch 'master' of ssh://mng.ber.c3voc.de/streaming-website
Diffstat (limited to 'model/Conference.php')
-rw-r--r-- | model/Conference.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/model/Conference.php b/model/Conference.php index 4d08791..9cb62d3 100644 --- a/model/Conference.php +++ b/model/Conference.php @@ -7,7 +7,13 @@ class Conference extends ModelBase } public function isPreviewEnabled() { - return $this->has('PREVIEW_DOMAIN') && ($this->get('PREVIEW_DOMAIN') == $_SERVER['SERVER_NAME']); + if(isset($GLOBALS['forceopen'])) + return true; + + if($this->has('PREVIEW_DOMAIN') && ($this->get('PREVIEW_DOMAIN') == $_SERVER['SERVER_NAME'])) + return true; + + return false; } public function isClosed() { @@ -94,12 +100,19 @@ class Conference extends ModelBase return $this->get('CONFERENCE.RELEASES'); } + public function getLink() { + return url_params(); + } + public function getAboutLink() { + return 'about/'.url_params(); + } + public function hasRelive() { return $this->has('CONFERENCE.RELIVE_JSON'); } public function getReliveUrl() { if($this->has('CONFERENCE.RELIVE_JSON')) - return 'relive/'; + return 'relive/'.url_params(); else return null; |