Change o_smilies_sig

This commit is contained in:
Visman 2021-12-19 12:28:54 +07:00
parent a394735f89
commit d89ba87a2b
4 changed files with 9 additions and 7 deletions

View file

@ -43,7 +43,7 @@ class Parser extends Parserus
if (
'1' == $this->c->user->show_smilies
&& (
'1' == $this->c->config->o_smilies_sig
1 == $this->c->config->b_smilies_sig
|| '1' == $this->c->config->o_smilies
)
) {
@ -143,7 +143,7 @@ class Parser extends Parserus
->parse($text);
}
if ('1' == $this->c->config->o_smilies_sig) {
if (1 == $this->c->config->b_smilies_sig) {
$this->detectSmilies();
}

View file

@ -1210,7 +1210,7 @@ class Install extends Admin
'b_show_user_info' => 1,
'b_show_post_count' => 1,
'o_smilies' => 1,
'o_smilies_sig' => 1,
'b_smilies_sig' => 1,
'o_make_links' => 1,
'o_default_lang' => $v->defaultlang,
'o_default_style' => $v->defaultstyle,

View file

@ -33,7 +33,7 @@ class Edit extends Parser
'p_message_bbcode' => 'required|integer|in:0,1',
'p_sig_bbcode' => 'required|integer|in:0,1',
'o_smilies' => 'required|integer|in:0,1',
'o_smilies_sig' => 'required|integer|in:0,1',
'b_smilies_sig' => 'required|integer|in:0,1',
'o_make_links' => 'required|integer|in:0,1',
])->addAliases([
])->addArguments([
@ -131,9 +131,9 @@ class Edit extends Parser
'caption' => 'Smilies mess label',
'help' => 'Smilies mess help',
],
'o_smilies_sig' => [
'b_smilies_sig' => [
'type' => 'radio',
'value' => $config->o_smilies_sig,
'value' => $config->b_smilies_sig,
'values' => $yn,
'caption' => 'Smilies sigs label',
'help' => 'Smilies sigs help',

View file

@ -502,13 +502,15 @@ class Update extends Admin
$this->c->config->i_timeout_online = $this->c->config->o_timeout_online ?? 900;
$this->c->config->i_redirect_delay = $this->c->config->o_redirect_delay ?? 1;
$this->c->config->b_show_user_info = '1' == $this->c->config->o_show_user_info ? 1 : 0;
$this->c->config->o_show_post_count = '1' == $this->c->config->o_show_post_count ? 1 : 0;
$this->c->config->b_show_post_count = '1' == $this->c->config->o_show_post_count ? 1 : 0;
$this->c->config->b_smilies_sig = '1' == $this->c->config->o_smilies_sig ? 1 : 0;
unset($this->c->config->o_timeout_visit);
unset($this->c->config->o_timeout_online);
unset($this->c->config->o_redirect_delay);
unset($this->c->config->o_show_user_info);
unset($this->c->config->o_show_post_count);
unset($this->c->config->o_smilies_sig);
$this->c->config->save();