1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-31 02:01:28 +00:00

trim() contents of version_static.txt

This commit is contained in:
Andrew Dolgov
2019-12-09 07:11:34 +03:00
parent 1aeeed930a
commit 6191c48596

View File

@@ -11,7 +11,7 @@
$root_dir = dirname(dirname(__FILE__));
if (file_exists("$root_dir/version_static.txt")) {
$version = file_get_contents("$root_dir/version_static.txt") . " (Unsupported)";
$version = trim(file_get_contents("$root_dir/version_static.txt")) . " (Unsupported)";
} else if (is_dir("$root_dir/.git")) {
$rc = 0;
$output = [];