require php 5.6

This commit is contained in:
Max Pozdeev 2021-07-24 18:27:23 +03:00
parent 104f66b099
commit dafd4d81a6

View file

@ -7,10 +7,9 @@
define('MTT_VERSION', '@VERSION');
##### MyTinyTodo requires php 5.4.0 and above! #####
if (version_compare(PHP_VERSION, '5.4.0') < 0) {
# If you adopt the script for old php version, look at stop_gpc() function in the sources of MTT v1.6
die("PHP 5.4+ is required");
##### MyTinyTodo requires php 5.6 and above! #####
if (version_compare(PHP_VERSION, '5.6.0') < 0) {
die("PHP 5.6+ is required");
}
if(!defined('MTTPATH')) define('MTTPATH', dirname(__FILE__) .'/');