Skip to content

Commit

Permalink
get_version: always return unsupported on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Dolgov committed Dec 18, 2019
1 parent c46c5e5 commit 74feef0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/functions.php
Expand Up @@ -1897,7 +1897,9 @@ function get_version(&$git_commit = false, &$git_timestamp = false) {
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;
Expand Down

0 comments on commit 74feef0

Please sign in to comment.