]> git.wh0rd.org - tt-rss.git/commitdiff
add startup check for iconv (refs #571)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 17 Mar 2013 11:59:37 +0000 (15:59 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 17 Mar 2013 11:59:37 +0000 (15:59 +0400)
include/sanity_check.php

index 5cb55674663cf5dd447cb3b503dde4a7910c7b05..fcf5487055206791cdb782619cc3dad8f6b3e797 100644 (file)
                                array_push($errors, "PHP support for ctype functions are required by HTMLPurifier.");
                        }
 
+                       if (!function_exists("iconv")) {
+                               array_push($errors, "PHP support for iconv is required to handle multiple charsets.");
+                       }
+
                        if (ini_get("safe_mode")) {
                                array_push($errors, "PHP safe mode setting is not supported.");
                        }