use SERVER_NAME everywhere

This commit is contained in:
MaZderMind 2015-12-23 14:12:10 +01:00
parent ec3a6d5c76
commit 0ed383670e

View file

@ -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() {