Skip to content

Commit

Permalink
Update version constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed Jun 12, 2024
1 parent afd04c9 commit dd73251
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "An extension which allows you to add static pages to your phpBB forum",
"homepage": "https://www.phpbb.com/customise/db/extension/pages/",
"version": "3.0.0",
"version": "3.0.1-dev",
"keywords": ["phpbb", "extension", "static", "pages"],
"license": "GPL-2.0-only",
"authors": [
Expand Down Expand Up @@ -58,7 +58,7 @@
"extra": {
"display-name": "Pages",
"soft-require": {
"phpbb/phpbb": ">=3.3.2"
"phpbb/phpbb": ">=3.3.2,<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 @@ -26,12 +26,14 @@ class ext extends \phpbb\extension\base
* the minimum version required by this extension:
*
* Requires phpBB 3.3.2 due to using role_exists check in permission migration.
* Not compatible with phpBB 4.0.0-dev due to using updated classes.
*
* @return bool
* @access public
*/
public function is_enableable()
{
return phpbb_version_compare(PHPBB_VERSION, '3.3.2', '>=');
return phpbb_version_compare(PHPBB_VERSION, '3.3.2', '>=')
&& phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<');
}
}

0 comments on commit dd73251

Please sign in to comment.