fix: use ??
instead of ?:
This commit is contained in:
parent
08f097cc09
commit
f02ab63d26
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ abstract class Page
|
|||
{
|
||||
$root = Loader::PackageConfig( 'core' )->get( 'pages/baseURL' , null , false );
|
||||
if (is_null($root)) {
|
||||
$root = ( ( $_SERVER[ 'HTTPS' ] ?: false ) ? 'https' : 'http' )
|
||||
$root = ( ( $_SERVER[ 'HTTPS' ] ?? false ) ? 'https' : 'http' )
|
||||
. '://' . $_SERVER[ 'HTTP_HOST' ];
|
||||
}
|
||||
return rtrim($root, '/');
|
||||
|
|
Loading…
Reference in a new issue