Skip to content

Commit dd73251

Browse files
committed
Update version constraints
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent afd04c9 commit dd73251

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "An extension which allows you to add static pages to your phpBB forum",
55
"homepage": "https://www.phpbb.com/customise/db/extension/pages/",
6-
"version": "3.0.0",
6+
"version": "3.0.1-dev",
77
"keywords": ["phpbb", "extension", "static", "pages"],
88
"license": "GPL-2.0-only",
99
"authors": [
@@ -58,7 +58,7 @@
5858
"extra": {
5959
"display-name": "Pages",
6060
"soft-require": {
61-
"phpbb/phpbb": ">=3.3.2"
61+
"phpbb/phpbb": ">=3.3.2,<4.0.0@dev"
6262
},
6363
"version-check": {
6464
"host": "www.phpbb.com",

ext.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ class ext extends \phpbb\extension\base
2626
* the minimum version required by this extension:
2727
*
2828
* Requires phpBB 3.3.2 due to using role_exists check in permission migration.
29+
* Not compatible with phpBB 4.0.0-dev due to using updated classes.
2930
*
3031
* @return bool
3132
* @access public
3233
*/
3334
public function is_enableable()
3435
{
35-
return phpbb_version_compare(PHPBB_VERSION, '3.3.2', '>=');
36+
return phpbb_version_compare(PHPBB_VERSION, '3.3.2', '>=')
37+
&& phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<');
3638
}
3739
}

0 commit comments

Comments
 (0)