Skip to content

Commit

Permalink
Fix saving of settings in word censoring - fixes #2114
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele45 committed Jul 22, 2015
1 parent 984d24b commit 4a7a63b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions sources/admin/ManagePosts.controller.php
Expand Up @@ -161,6 +161,7 @@ public function action_censor()
'censor_proper' => implode("\n", $censored_proper),
'censorWholeWord' => empty($_POST['censorWholeWord']) ? '0' : '1',
'censorIgnoreCase' => empty($_POST['censorIgnoreCase']) ? '0' : '1',
'allow_no_censored' => empty($_POST['allow_no_censored']) ? '0' : '1',
);

call_integration_hook('integrate_save_censors', array(&$updates));
Expand Down
4 changes: 2 additions & 2 deletions themes/default/Admin.template.php
Expand Up @@ -753,10 +753,10 @@ function template_edit_censored()
<input type="checkbox" name="censorIgnoreCase" value="1" id="censorIgnoreCase_check"', empty($modSettings['censorIgnoreCase']) ? '' : ' checked="checked"', ' class="input_check" />
</dd>
<dt>
<a href="' . $scripturl . '?action=quickhelp;help=allow_no_censored" onclick="return reqOverlayDiv(this.href);" class="help"><img src="' . $settings['images_url'] . '/helptopics.png" class="icon" alt="' . $txt['help'] . '" /></a><label for="allow_no_censored">', $txt['censor_allow'], '</label></a></dt>
<a href="' . $scripturl . '?action=quickhelp;help=allow_no_censored" onclick="return reqOverlayDiv(this.href);" class="help"><img src="' . $settings['images_url'] . '/helptopics.png" class="icon" alt="' . $txt['help'] . '" /></a><label for="allow_no_censored">', $txt['censor_allow'], '</label></dt>
</dt>
<dd>
<input type="checkbox" name="censorAllow" value="1" id="allow_no_censored"', empty($modSettings['allow_no_censored']) ? '' : ' checked="checked"', ' class="input_check" />
<input type="checkbox" name="allow_no_censored" value="1" id="allow_no_censored"', empty($modSettings['allow_no_censored']) ? '' : ' checked="checked"', ' class="input_check" />
</dd>
</dl>
<input type="submit" name="save_censor" value="', $txt['save'], '" class="right_submit" />
Expand Down

0 comments on commit 4a7a63b

Please sign in to comment.