]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
support disabling of e-mail digests entirely
[tt-rss.git] / include / sanity_check.php
index 8f75217560d2cd70decb47e57a0efe0ec990cc6e..8a38ec5238a552aeb282db334248213be3a69ef1 100755 (executable)
@@ -47,7 +47,7 @@
                        }
 
                        if (version_compare(PHP_VERSION, '5.6.0', '<')) {
-                               array_push($errors, "PHP version 5.6.0 or newer required.");
+                               array_push($errors, "PHP version 5.6.0 or newer required. You're using " . PHP_VERSION . ".");
                        }
 
                        if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
@@ -75,7 +75,7 @@
                                        "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.");