Skip to content

Commit

Permalink
Update phpBB requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed Jul 5, 2024
1 parent b9175f3 commit 8238b67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 8238b67

Please sign in to comment.