Skip to content

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWCS committed Dec 9, 2023
1 parent 4ef8f4e commit ed139ef
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 29 deletions.
4 changes: 2 additions & 2 deletions docs/version_check.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"stable": {
"1.0": {
"current": "1.0.2",
"3.3": {
"current": "1.1.0",
"announcement": "https://github.com/LukeWCS/stats-permissions/releases",
"eol": null,
"security": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/* SETTINGS */

input[type=button][name*="stats_permissions_"],
[type=button][name*="stats_permissions_"],
.submit-buttons input[type=submit],
.submit-buttons input[type=button] {
padding: 3px 4px;
Expand Down
4 changes: 2 additions & 2 deletions lukewcs/statspermissions/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "Allows to define independent permissions for viewing statistics and newest member.",
"homepage": "https://github.com/LukeWCS/stats-permissions",
"version": "1.1.0-b1",
"version": "1.1.0",
"time": "2023-12-09",
"license": "GPL-2.0-only",
"authors": [
Expand All @@ -21,7 +21,7 @@
"display-name": "Stats Permissions",
"lang-min-ver": "1.1.0",
"soft-require": {
"phpbb/phpbb": ">=3.2.10,<3.4.0@dev"
"phpbb/phpbb": ">=3.2.11,<3.4.0@dev"
},
"version-check": {
"host": "lukewcs.github.io",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,27 +98,6 @@ private function get_lang_ver(string $lang_ext_ver): string
return ($this->language->is_set($lang_ext_ver) ? preg_replace('/[^0-9.]/', '', $this->language->lang($lang_ext_ver)) : '0.0.0');
}

// Check the language pack version for the minimum version and generate notice if outdated
private function check_lang_ver(string $ext_name, string $ext_lang_ver, string $ext_lang_min_ver, string $lang_outdated_var): string
{
$lang_outdated_msg = '';

if (phpbb_version_compare($ext_lang_ver, $ext_lang_min_ver, '<'))
{
if ($this->language->is_set($lang_outdated_var))
{
$lang_outdated_msg = $this->language->lang($lang_outdated_var);
}
else // Fallback if the current language package does not yet have the required variable.
{
$lang_outdated_msg = 'Note: The language pack for the extension <strong>%1$s</strong> is no longer up-to-date. (installed: %2$s / needed: %3$s)';
}
$lang_outdated_msg = sprintf($lang_outdated_msg, $ext_name, $ext_lang_ver, $ext_lang_min_ver);
}

return $lang_outdated_msg;
}

// Check the language pack version for the minimum version and generate notice if outdated
private function lang_ver_check_msg(string $lang_version_var, string $lang_outdated_var): string
{
Expand Down
2 changes: 1 addition & 1 deletion lukewcs/statspermissions/ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ext extends \phpbb\extension\base
{
public function is_enableable()
{
$valid_phpbb = phpbb_version_compare(PHPBB_VERSION, '3.2.10', '>=') && phpbb_version_compare(PHPBB_VERSION, '3.4.0-dev', '<');
$valid_phpbb = phpbb_version_compare(PHPBB_VERSION, '3.2.11', '>=') && phpbb_version_compare(PHPBB_VERSION, '3.4.0-dev', '<');
$valid_php = phpbb_version_compare(PHP_VERSION, '7.1.0', '>=') && phpbb_version_compare(PHP_VERSION, '8.4.0-dev', '<');

return $valid_phpbb && $valid_php;
Expand Down
4 changes: 4 additions & 0 deletions stats-permissions_build_changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.1.0
* Release (2023-12-09)
* Veraltete Funktion entfernt.

#### 1.1.0-b1
* Freigegeben für PHP 8.3.
* Erweiterung ist jetzt kompatibel mit Toggle Control. Somit können Administratoren zentral an einer Stelle entscheiden, ob für Ja/Nein Schalter Radio Buttons, Checkboxen oder Toggles verwendet werden sollen.
Expand Down
4 changes: 2 additions & 2 deletions stats-permissions_changelog_de.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
### 1.1.0
(2023-12-)
(2023-12-09)

* Freigegeben für PHP 8.3.
* Erweiterung ist jetzt kompatibel mit Toggle Control. Somit können Administratoren zentral an einer Stelle entscheiden, ob für Ja/Nein Schalter Radio Buttons, Checkboxen oder Toggles verwendet werden sollen.
* Technik auf den Stand von EMP 2.0 gebracht.
* Technik auf den Stand von EMP 2.0 gebracht, Details im Build Changelog.

### 1.0.2
(2023-02-12)
Expand Down

0 comments on commit ed139ef

Please sign in to comment.