aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2015-12-23 14:12:10 +0100
committerMaZderMind2015-12-23 14:12:10 +0100
commit0ed383670ed0d18b343ab578eca90084e07d1dfc (patch)
treeb61f2b92298a48fc3833fd3963285be0c2543e21
parentec3a6d5c763ecc8c46f266659d790c4b57233074 (diff)
use SERVER_NAME everywhere
Diffstat (limited to '')
-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() {