mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[ticket/11076] Also add notice about unsupported version to installer
PHPBB3-11076
This commit is contained in:
parent
aa9da98e8a
commit
d0724063c4
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@ define('PHPBB_ENVIRONMENT', 'production');
|
|||
$phpbb_root_path = '../';
|
||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.4') < 0)
|
||||
{
|
||||
die('You are running an unsupported PHP version. Please upgrade to PHP 5.4.0 or higher before trying to install or update to phpBB 3.2');
|
||||
}
|
||||
|
||||
$startup_new_path = $phpbb_root_path . 'install/update/update/new/install/startup.' . $phpEx;
|
||||
$startup_path = (file_exists($startup_new_path)) ? $startup_new_path : $phpbb_root_path . 'install/startup.' . $phpEx;
|
||||
require($startup_path);
|
||||
|
|
Loading…
Add table
Reference in a new issue