Skip to content

Commit e6ea996

Browse files
Merge pull request SimpleMachines#8833 from jdarwood007/2.1/fix8810
2 parents a495fbe + 9d8a9be commit e6ea996

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Sources/Profile-Modify.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,6 @@ function $preload: A function that is used to load data required for this eleme
562562
{
563563
loadLanguage('Settings');
564564

565-
$context['allow_no_censored'] = false;
566-
if ($user_info['is_admin'] || $context['user']['is_owner'])
567-
$context['allow_no_censored'] = !empty($modSettings['allow_no_censored']);
568565

569566
return true;
570567
},

Themes/default/Settings.template.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ function template_options()
6565
'label' => $txt['show_no_signatures'],
6666
'default' => true,
6767
),
68+
array(
69+
'id' => 'show_no_censored',
70+
'label' => $txt['show_no_censored'],
71+
'default' => false,
72+
'enabled' => !empty($modSettings['allow_no_censored']),
73+
),
6874
array(
6975
'id' => 'posts_apply_ignore_list',
7076
'label' => $txt['posts_apply_ignore_list'],

0 commit comments

Comments
 (0)