summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-10-29 10:17:43 +0300
committerAndrew Dolgov <[email protected]>2017-10-29 10:17:43 +0300
commit8716ec20d6365c2dae8012ce7c1d874594e488a1 (patch)
tree5dd338540d0815fe1dd4c73cd659ce1bf6aced26 /include/sanity_check.php
parent91f49ba17d3f0d36978985ce608f4972c948325d (diff)
add sanity check for mime_content_type()
Diffstat (limited to 'include/sanity_check.php')
-rwxr-xr-xinclude/sanity_check.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index 964dce03c..39962219f 100755
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -149,6 +149,10 @@
array_push($errors, "PHP safe mode setting is obsolete and not supported by tt-rss.");
}
+ if (!function_exists("mime_content_type")) {
+ array_push($errors, "PHP function mime_content_type() is missing, try enabling fileinfo module.");
+ }
+
if (!class_exists("DOMDocument")) {
array_push($errors, "PHP support for DOMDocument is required, but was not found.");
}