Skip to content

Commit

Permalink
4.3.3
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Andrés <diegoandres_cortes@outlook.com>
  • Loading branch information
DiegoAndresCortes committed Nov 12, 2023
1 parent db176b6 commit 8700fa4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### 4.3.3 - 12 November 2023
- ![New Feature](https://smftricks.com/assets/changelog/tag--plus.png) Pre-select filtered prefixes when posting a new poll in boards.

### 4.3.2 - 05 July 2023
- ![Bug Fix](https://smftricks.com/assets/changelog/bug--minus.png) Fixed modifying 'New Topic' url when it's not set.

Expand Down
4 changes: 4 additions & 0 deletions Sources/PostPrefix/Integration/MessageIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ public function topics_prefixes() : void
if (isset($_REQUEST['prefix']) && !empty($_REQUEST['prefix']) && $context['can_post_new'])
$context['normal_buttons']['new_topic']['url'] .= ';prefix=' . $_REQUEST['prefix'];

// Do the same for polls
if (isset($_REQUEST['prefix']) && !empty($_REQUEST['prefix']) && $context['can_post_poll'])
$context['normal_buttons']['post_poll']['url'] .= ';prefix=' . $_REQUEST['prefix'];

// Okay, search the prefixes
if (($context['prefixes']['filter'] = cache_get_data('prefix_filter_b' . $board, 3600)) === null)
{
Expand Down
2 changes: 1 addition & 1 deletion package-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>smftricks:postprefix</id>
<name>SMF Post Prefix</name>
<version>4.3.2</version>
<version>4.3.3</version>
<type>modification</type>
<install for="2.1 - 2.1.99">
<!-- Throw error if PHP version too old -->
Expand Down

0 comments on commit 8700fa4

Please sign in to comment.