From 55e8507cacb138bf65ce0ed5ee23e458f734ca08 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 23 Aug 2017 08:56:08 +0200 Subject: [PATCH] added MAC OS detection --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 26a6cfbe..a19fcbd7 100644 --- a/common.php +++ b/common.php @@ -31,7 +31,7 @@ define('MYAAC_VERSION', '0.2.4'); define('DATABASE_VERSION', 4); define('TABLE_PREFIX', 'myaac_'); define('START_TIME', microtime(true)); -define('MYAAC_OS', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? 'WINDOWS' : 'LINUX'); +define('MYAAC_OS', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? 'WINDOWS' : (strtoupper(PHP_OS) == 'DARWIN' ? 'MAC' : 'LINUX')); // account flags define('FLAG_ADMIN', 1);