Compare commits
2 commits
0d2ba42dea
...
8254313ebe
Author | SHA1 | Date | |
---|---|---|---|
8254313ebe | |||
3c3a6305f3 |
2 changed files with 8 additions and 7 deletions
|
@ -25,7 +25,6 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,15 +114,17 @@ 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 - 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),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue