Skip to content

Commit

Permalink
Update phpBB 4 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 e33374d commit aaa8dd7
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 20 deletions.
6 changes: 3 additions & 3 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.1-dev",
"version": "3.1.0-dev",
"keywords": ["phpbb", "extension", "static", "pages"],
"license": "GPL-2.0-only",
"authors": [
Expand Down Expand Up @@ -49,7 +49,7 @@
}
],
"require": {
"php": ">=7.1.3",
"php": ">=8.1",
"composer/installers": "~1.0"
},
"require-dev": {
Expand All @@ -58,7 +58,7 @@
"extra": {
"display-name": "Pages",
"soft-require": {
"phpbb/phpbb": ">=3.3.2,<4.0.0@dev"
"phpbb/phpbb": ">=4.0.0@dev"
},
"version-check": {
"host": "www.phpbb.com",
Expand Down
67 changes: 54 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ class ext extends \phpbb\extension\base
* The current phpBB version should meet or exceed
* 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.
* Requires 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', '>=')
&& phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<');
return phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '>=');
}
}

0 comments on commit aaa8dd7

Please sign in to comment.