fix: use ?? instead of ?:

This commit is contained in:
Emmanuel BENOîT 2025-01-05 20:26:12 +01:00
parent 08f097cc09
commit f02ab63d26
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

View file

@ -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, '/');