1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 23:35:57 +00:00

add sanity check for mime_content_type()

This commit is contained in:
Andrew Dolgov
2017-10-29 10:17:43 +03:00
parent 91f49ba17d
commit 8716ec20d6

View File

@@ -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.");
}