mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 14:44:21 +00:00
use SERVER_NAME everywhere
This commit is contained in:
parent
ec3a6d5c76
commit
0ed383670e
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue