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
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
$root_dir = dirname(dirname(__FILE__)); $root_dir = dirname(dirname(__FILE__));
if (file_exists("$root_dir/version_static.txt")) { 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")) { } else if (is_dir("$root_dir/.git")) {
$rc = 0; $rc = 0;
$output = []; $output = [];