aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--model/Conference.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/Conference.php b/model/Conference.php
index 8a8291b..aa30b40 100644
--- a/model/Conference.php
+++ b/model/Conference.php
@@ -7,7 +7,7 @@ class Conference extends ModelBase
}
public function isPreviewEnabled() {
- return $this->has('PREVIEW_DOMAIN') && ($this->get('PREVIEW_DOMAIN') == $_SERVER['HTTP_HOST']);
+ return $this->has('PREVIEW_DOMAIN') && ($this->get('PREVIEW_DOMAIN') == $_SERVER['SERVER_NAME']);
}
public function isClosed() {