From 8238b676cd5953dab29b712874dcc33459ef08ea Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Fri, 5 Jul 2024 16:17:59 -0700 Subject: [PATCH] Update phpBB requirements Signed-off-by: Matt Friedman --- composer.json | 2 +- ext.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7013feb..ad25952 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "extra": { "display-name": "phpBB Topic Prefixes", "soft-require": { - "phpbb/phpbb": ">=3.2.0" + "phpbb/phpbb": ">=3.2.0,<4.0.0@dev" }, "version-check": { "host": "www.phpbb.com", diff --git a/ext.php b/ext.php index a82ff90..955cff4 100644 --- a/ext.php +++ b/ext.php @@ -31,6 +31,8 @@ class ext extends \phpbb\extension\base */ public function is_enableable() { - return phpbb_version_compare(PHPBB_VERSION, '3.2.0', '>=') && phpbb_version_compare(PHP_VERSION, '5.4', '>='); + return phpbb_version_compare(PHPBB_VERSION, '3.2.0', '>=') + && phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<') + && PHP_VERSION_ID >= 50400; } }