Skip to content

Commit e7bed2d

Browse files
committed
v1.2.0 - Removed unnecessary ternary operator
1 parent 14c4f3d commit e7bed2d

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

imcger/recenttopicsng/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Based on NV Recent Topics for phpBB 3.0, by Joas Schilling ([nickvergessen](http
88
[![Tests](https://github.com/IMC-GER/RecentTopicsNG/actions/workflows/tests.yml/badge.svg)](https://github.com/IMC-GER/RecentTopicsNG/actions/workflows/tests.yml)
99

1010
### Version
11-
* v1.1.0
12-
* 08/03/2026
11+
* v1.2.0
12+
* 01/05/2026
1313

1414
### Requirements
1515
* phpBB 3.3.5 - 3.3.x

imcger/recenttopicsng/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"type": "phpbb-extension",
44
"description": "Adds a list with a number of recent topics to the board index.",
55
"homepage": "https://github.com/IMC-GER/RecentTopicsNG",
6-
"version": "1.2.0-b6",
7-
"time": "2026-05-25",
6+
"version": "1.2.0",
7+
"time": "2026-05-01",
88
"license": "GPL-2.0-only",
99
"authors": [
1010
{

imcger/recenttopicsng/core/rtng_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ private function fill_template(array $icons, string $tpl_loopname, array $topic_
469469
$forum_id = $row['forum_id'];
470470
$unread_topic = false;
471471
$replies = $this->content_visibility->get_count('topic_posts', $row, $forum_id) - 1;
472-
$s_type_switch_test = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? true : false;
472+
$s_type_switch_test = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL);
473473
$disp_topic_title = $this->user_setting['user_rtng_disp_last_post'] ? 'last_post' : 'first_post';
474474

475475
if (isset($first_unread_post_data[$topic_id]))

imcger/recenttopicsng/docs/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Changelog Recent Topics NG V1.2.0-b6
1+
## Changelog Recent Topics NG V1.2.0
22
This is a non-exhaustive (but still near complete) changelog for Recent Topics NG 1.x including release candidate versions.
33

4-
#### Changes since V1.1.0 (05/04/2026)
4+
#### Changes since V1.1.0 (01/05/2026)
55
- [Change] Template vars for topic parents moved into `$tpl_ary`.
66
- [Change] Improve the code for the pagination URL parameters.
77
- [Chamge] Updated the `switch()` macro to the version of TC 1.3.

0 commit comments

Comments
 (0)