N°7426 - no session created - replace php_sapi_name() by PHP_SAPI

This commit is contained in:
odain
2024-05-16 14:10:54 +02:00
parent 53dc452d61
commit f8b54be896
4 changed files with 65 additions and 73 deletions

View File

@@ -48,7 +48,7 @@ if (file_exists(MAINTENANCE_MODE_FILE) && !$bBypassMaintenance)
http_response_code(503);
// Display message depending on the request
include(APPROOT.'application/maintenancemsg.php');
$sSAPIName = strtoupper(trim(php_sapi_name()));
$sSAPIName = strtoupper(trim(PHP_SAPI));
switch (true)
{