From c309856a976b230a56b1eb700590111bd2ad7451 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 19 Dec 2019 07:04:01 +0300 Subject: [PATCH] get_version: filter out Darwin --- include/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/functions.php b/include/functions.php index 3b71eb0bd..47dd9c73c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1899,6 +1899,8 @@ if ('\\' === DIRECTORY_SEPARATOR) { $ttrss_version = "UNKNOWN (Unsupported, Windows)"; + } else if (PHP_OS === "Darwin") { + $ttrss_version = "UNKNOWN (Unsupported, Darwin)"; } else if (file_exists("$root_dir/version_static.txt")) { $ttrss_version = trim(file_get_contents("$root_dir/version_static.txt")) . " (Unsupported)"; } else if (is_dir("$root_dir/.git")) {