From 0ed383670ed0d18b343ab578eca90084e07d1dfc Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 23 Dec 2015 14:12:10 +0100 Subject: use SERVER_NAME everywhere --- model/Conference.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'model/Conference.php') 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() { -- cgit v1.2.3