diff --git a/update.php b/update.php old mode 100644 new mode 100755 index b2894cc..f513ab6 --- a/update.php +++ b/update.php @@ -6,7 +6,7 @@ define('PHPBB_ROOT_PATH', '../'); define('IN_PHPBB', true); define('SUPPORTED_RELEASE_MAJOR', 3); -define('SUPPORTED_RELEASE_MINOR', 3); +define('SUPPORTED_RELEASE_MINOR', 2); function confirm($message = 'Are you sure? ', $options = array('y', 'n'), $default ='n') @@ -139,7 +139,7 @@ if (!empty($argv[1])) { // phpBB has major, minor and maintenance version scheme list($major, $minor, $patch) = explode('.', $installedVersion); - if ((intval($major) != SUPPORTED_RELEASE_MAJOR)) { + if ((intval($major) != SUPPORTED_RELEASE_MAJOR) || (intval($minor) != SUPPORTED_RELEASE_MINOR)) { echo 'This script only supports phpBB ' . SUPPORTED_RELEASE_MAJOR . '.' . SUPPORTED_RELEASE_MINOR . ' branch.', PHP_EOL; exit(1); }