mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:35:57 +00:00
get_version: always return unsupported on windows
This commit is contained in:
@@ -1897,7 +1897,9 @@
|
|||||||
date_default_timezone_set('UTC');
|
date_default_timezone_set('UTC');
|
||||||
$root_dir = dirname(dirname(__FILE__));
|
$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)";
|
$ttrss_version = trim(file_get_contents("$root_dir/version_static.txt")) . " (Unsupported)";
|
||||||
} else if (is_dir("$root_dir/.git")) {
|
} else if (is_dir("$root_dir/.git")) {
|
||||||
$rc = 0;
|
$rc = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user