summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-19 14:41:34 +0300
committerAndrew Dolgov <[email protected]>2019-12-19 14:41:34 +0300
commite9b4834b6ba788f43b8ce0bca13a9526df11d472 (patch)
tree85e929624284316b7a05c3d7fe131b7f1d579e6d
parented06592114769a9c614652ef3d012438892bd633 (diff)
parent6439f7817d779f43437b79dfb04e5254f7e0bbf4 (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
-rw-r--r--include/functions.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index da87588f0..f244b47b8 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -27,6 +27,9 @@
error_reporting(E_ALL & ~E_NOTICE);
}
+ ini_set('display_errors', 0);
+ ini_set('display_startup_errors', 0);
+
require_once 'config.php';
/**
@@ -1897,7 +1900,11 @@
date_default_timezone_set('UTC');
$root_dir = dirname(dirname(__FILE__));
- if (file_exists("$root_dir/version_static.txt")) {
+ if ('\\' === DIRECTORY_SEPARATOR) {
+ $ttrss_version = "UNKNOWN (Unsupported, Windows)";
+ } else if (PHP_OS === "Darwin") {
+ $ttrss_version = "UNKNOWN (Unsupported, Darwin)";
+ } else if (file_exists("$root_dir/version_static.txt")) {
$ttrss_version = trim(file_get_contents("$root_dir/version_static.txt")) . " (Unsupported)";
} else if (is_dir("$root_dir/.git")) {
$rc = 0;