mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
more PHP8 features
This commit is contained in:
parent
761ac69a20
commit
bf4b957bb6
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ require_once(FILE_PATH . "/src/functions.php");
|
|||
/***REM_END***/
|
||||
define("DATA_PATH", realpath(arg("data-path", FILE_PATH)) . "/");
|
||||
|
||||
if(arg("enable-ansi", !(strpos(strtoupper(php_uname("s")), "WIN") === 0)) === true and arg("disable-ansi", false) !== true){
|
||||
if(arg("enable-ansi", !(str_starts_with(strtoupper(php_uname("s")), "WIN"))) === true and arg("disable-ansi", false) !== true){
|
||||
define("ENABLE_ANSI", true);
|
||||
}else{
|
||||
define("ENABLE_ANSI", false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue