diff options
author | Andrew Dolgov <[email protected]> | 2021-11-17 10:36:04 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-17 10:36:04 +0300 |
commit | 938f7db482626c146805d466c73ec0337d6dc638 (patch) | |
tree | f050c783d1c52a8ecb240dc8305595fa5267820d /classes/config.php | |
parent | 5980b3d2cb5ad8b0689ae731f405fa0b2c9d6586 (diff) |
correctly show non-docker git installs as unsupported
Diffstat (limited to 'classes/config.php')
-rw-r--r-- | classes/config.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/config.php b/classes/config.php index 9096a4953..8813b9a69 100644 --- a/classes/config.php +++ b/classes/config.php @@ -299,7 +299,10 @@ class Config { user_error("Unable to determine version: " . $this->version["version"], E_USER_WARNING); $this->version["version"] = "UNKNOWN (Unsupported, Git error)"; + } else if (!getenv("TTRSS_SELF_URL_PATH") || !getenv("SCRIPT_ROOT")) { + $this->version["version"] .= " (Unsupported)"; } + } else { $this->version["version"] = "UNKNOWN (Unsupported)"; } |