summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-18 19:28:00 +0300
committerAndrew Dolgov <[email protected]>2019-12-18 19:28:00 +0300
commit74feef0f9d7258570a6c6a7a694fc1a0394843ca (patch)
tree284efec344f452410dfd1db0c2cc11f147aaffa7 /include
parentc46c5e59fc8bec35a2a9adaae8501eda47d7d823 (diff)
get_version: always return unsupported on windows
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index da87588f0..3b71eb0bd 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1897,7 +1897,9 @@
date_default_timezone_set('UTC');
$root_dir = dirname(dirname(__FILE__));
- if (file_exists("$root_dir/version_static.txt")) {
+ if ('\\' === DIRECTORY_SEPARATOR) {
+ $ttrss_version = "UNKNOWN (Unsupported, Windows)";
+ } 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")) {
$rc = 0;