From 845ad5abec7a6e834ecaf06514a9bd10d22683e8 Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Mon, 5 Oct 2026 09:20:38 -0500 Subject: [PATCH] Require phpBB 3.3.19 Refuse to enable on phpBB older than 3.3.19 or below the extension's minimum PHP version, showing a clear reason instead of a generic error. phpBB 3.3.17 through 3.3.19 fixed a series of security issues, so older boards should update phpBB first. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- composer.json | 2 +- ext.php | 4 ++-- language/en/install_useridviewtopic.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 174746e..40d1a55 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Shows each poster's user ID next to their posts. ## Requirements -- phpBB 3.3.17 or later +- phpBB 3.3.19 or later - PHP 8.2 or later ## Installation diff --git a/composer.json b/composer.json index 10d3aba..bd307e3 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "extra": { "display-name": "User ID in Viewtopic", "soft-require": { - "phpbb/phpbb": ">=3.3.17,<4.0.0@dev" + "phpbb/phpbb": ">=3.3.19,<4.0.0@dev" } } } diff --git a/ext.php b/ext.php index 9bc9d1c..a71af1a 100644 --- a/ext.php +++ b/ext.php @@ -42,13 +42,13 @@ public function is_enableable() } /** - * Require phpBB 3.3.17 + * Require phpBB 3.3.19 * * @return bool */ protected function check_phpbb_version() { - return phpbb_version_compare(PHPBB_VERSION, '3.3.17', '>='); + return phpbb_version_compare(PHPBB_VERSION, '3.3.19', '>='); } /** diff --git a/language/en/install_useridviewtopic.php b/language/en/install_useridviewtopic.php index a384288..0c6ad1b 100644 --- a/language/en/install_useridviewtopic.php +++ b/language/en/install_useridviewtopic.php @@ -35,5 +35,5 @@ // $lang = array_merge($lang, [ - 'USERIDVIEWTOPIC_NOT_ENABLEABLE' => 'User ID in Viewtopic could not be enabled. The minimum requirements of phpBB 3.3.0 and/or PHP 8.2.0 were not satisfied.', + 'USERIDVIEWTOPIC_NOT_ENABLEABLE' => 'User ID in Viewtopic could not be enabled. The minimum requirements of phpBB 3.3.19 and/or PHP 8.2.0 were not satisfied.', ]);