aboutsummaryrefslogtreecommitdiff
path: root/model/Conference.php
diff options
context:
space:
mode:
authorMaZderMind2015-12-23 11:58:44 +0100
committerMaZderMind2015-12-23 11:58:44 +0100
commit40bf3b71ce2d09d78be80713930368ad83917fd5 (patch)
tree449c1f3125b315014bcf8e4a52e4f0a79ae09ef1 /model/Conference.php
parentca134c64e619ffa2af0739ece8e8636b4fcbe13b (diff)
enable support for a preview-domain
Diffstat (limited to 'model/Conference.php')
-rw-r--r--model/Conference.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/model/Conference.php b/model/Conference.php
index fb29791..701d7c7 100644
--- a/model/Conference.php
+++ b/model/Conference.php
@@ -11,6 +11,12 @@ class Conference extends ModelBase
}
public function hasBegun() {
+ // on the preview-domain all conferences are always open
+ if($this->has('PREVIEW_DOMAIN') && $this->get('PREVIEW_DOMAIN') == $_SERVER['HTTP_HOST'])
+ {
+ return true;
+ }
+
if($this->has('CONFERENCE.CLOSED')) {
$closed = $this->get('CONFERENCE.CLOSED');
@@ -35,6 +41,12 @@ class Conference extends ModelBase
}
public function hasEnded() {
+ // on the preview-domain no conference ever ends
+ if($this->has('PREVIEW_DOMAIN') && $this->get('PREVIEW_DOMAIN') == $_SERVER['HTTP_HOST'])
+ {
+ return false;
+ }
+
if($this->has('CONFERENCE.CLOSED')) {
$closed = $this->get('CONFERENCE.CLOSED');