trim() contents of version_static.txt
This commit is contained in:
parent
1aeeed930a
commit
6191c48596
|
@ -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 = [];
|
||||||
|
|
Loading…
Reference in New Issue