]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
sanity config: fix typo
[tt-rss.git] / include / sanity_check.php
index 94578b4040c495c604bd52eb7093b6c5e4d4e490..8a38ec5238a552aeb282db334248213be3a69ef1 100755 (executable)
@@ -46,8 +46,8 @@
                                array_push($errors, "Please don't run this script as root.");
                        }
 
-                       if (version_compare(PHP_VERSION, '5.4.0', '<')) {
-                               array_push($errors, "PHP version 5.4.0 or newer required.");
+                       if (version_compare(PHP_VERSION, '5.6.0', '<')) {
+                               array_push($errors, "PHP version 5.6.0 or newer required. You're using " . PHP_VERSION . ".");
                        }
 
                        if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
                                array_push($errors, "Javascript cache is not writable (chmod -R 777 ".CACHE_DIR."/js)");
                        }
 
-                       if (strlen(FEED_CRYPT_KEY) > 0 && strlen(FEED_CRYPT_KEY) != 24) {
-                               array_push($errors, "FEED_CRYPT_KEY should be exactly 24 characters in length.");
-                       }
-
-                       if (strlen(FEED_CRYPT_KEY) > 0 && !function_exists("mcrypt_decrypt")) {
-                               array_push($errors, "FEED_CRYPT_KEY requires mcrypt functions which are not found.");
-                       }
-
                        if (GENERATED_CONFIG_CHECK != EXPECTED_CONFIG_VERSION) {
                                array_push($errors,
                                        "Configuration option checker sanity_config.php is outdated, please recreate it using ./utils/regen_config_checks.sh");
                        }
 
-                       foreach ($requred_defines as $d) {
+                       foreach ($required_defines as $d) {
                                if (!defined($d)) {
                                        array_push($errors,
                                                "Required configuration file parameter $d is not defined in config.php. You might need to copy it from config.php-dist.");