Compare commits

..

No commits in common. "8254313ebe6e65535ff35631d4c8f3baefc24779" and "0d2ba42deaced1d05d813d12155a3742ce934698" have entirely different histories.

2 changed files with 7 additions and 8 deletions

View file

@ -25,6 +25,7 @@ function topic_is_muted($topic, $user = -1)
{ {
global $context, $smcFunc, $user_info; global $context, $smcFunc, $user_info;
if ($user_info['is_guest']) { if ($user_info['is_guest']) {
die('lol');
return false; return false;
} }
@ -114,17 +115,15 @@ function mute_theme_option()
} }
$option = array( $option = array(
array( 'id' => 'topic_mute_roadblock',
'id' => 'topic_mute_roadblock', 'label' => $txt['topic_mute_roadblock'],
'label' => $txt['topic_mute_roadblock'], 'default' => false,
'default' => false,
),
); );
$context['theme_options'] = array_merge( $context['theme_options'] = array_merge(
array_slice($context['theme_options'], 0, $posting_idx, true), array_slice($context['theme_options'], 0, $posting_idx - 1, true),
$option, $option,
array_slice($context['theme_options'], $posting_idx, null, true), array_slice($context['theme_options'], $posting_idx - 1, 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'] = 'Hide the option to show muted threads'; $txt['topic_mute_roadblock'] = 'Present an option to show muted threads';
?> ?>