mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Merge branch 'w45_MDL-36196_m24_vercheck' of git://github.com/skodak/moodle
This commit is contained in:
commit
967ec6fb4d
1 changed files with 2 additions and 4 deletions
|
@ -56,10 +56,8 @@ if (function_exists('date_default_timezone_set') and function_exists('date_defau
|
||||||
@error_reporting(E_ALL);
|
@error_reporting(E_ALL);
|
||||||
@ini_set('display_errors', '1');
|
@ini_set('display_errors', '1');
|
||||||
|
|
||||||
// Check that PHP is of a sufficient version
|
// Check that PHP is of a sufficient version.
|
||||||
// PHP 5.2.0 is intentionally checked here even though a higher version is required by the environment
|
if (version_compare(phpversion(), '5.3.2') < 0) {
|
||||||
// check. This is not a typo - see MDL-18112
|
|
||||||
if (version_compare(phpversion(), "5.2.0") < 0) {
|
|
||||||
$phpversion = phpversion();
|
$phpversion = phpversion();
|
||||||
// do NOT localise - lang strings would not work here and we CAN not move it after installib
|
// do NOT localise - lang strings would not work here and we CAN not move it after installib
|
||||||
echo "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).<br />";
|
echo "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).<br />";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue