topic_mute: Fix options not appearing

This commit is contained in:
snow flurry 2025-03-02 14:41:19 -08:00
parent 3c3a6305f3
commit 8254313ebe
2 changed files with 8 additions and 6 deletions
plugin/topic_mute/src

View file

@ -114,15 +114,17 @@ function mute_theme_option()
} }
$option = array( $option = array(
'id' => 'topic_mute_roadblock', array(
'label' => $txt['topic_mute_roadblock'], 'id' => 'topic_mute_roadblock',
'default' => false, 'label' => $txt['topic_mute_roadblock'],
'default' => false,
),
); );
$context['theme_options'] = array_merge( $context['theme_options'] = array_merge(
array_slice($context['theme_options'], 0, $posting_idx - 1, true), array_slice($context['theme_options'], 0, $posting_idx, true),
$option, $option,
array_slice($context['theme_options'], $posting_idx - 1, null, true), array_slice($context['theme_options'], $posting_idx, null, true),
); );
} }

View file

@ -2,6 +2,6 @@
$txt['mute_topic'] = 'Mute Topic'; $txt['mute_topic'] = 'Mute Topic';
$txt['unmute_topic'] = 'Unmute Topic'; $txt['unmute_topic'] = 'Unmute Topic';
$txt['topic_mute_roadblock'] = 'Present an option to show muted threads'; $txt['topic_mute_roadblock'] = 'Hide the option to show muted threads';
?> ?>