Change o_show_dot

This commit is contained in:
Visman 2021-12-19 12:48:28 +07:00
parent ab3e4dd1f6
commit 0dd4668665
4 changed files with 7 additions and 5 deletions

View file

@ -1222,7 +1222,7 @@ class Install extends Admin
'b_quickpost' => 1,
'b_users_online' => 1,
'b_censoring' => 0,
'o_show_dot' => 0,
'b_show_dot' => 0,
'o_topic_views' => 1,
'o_quickjump' => 1,
'o_additional_navlinks' => '',

View file

@ -54,7 +54,7 @@ class Options extends Admin
'i_disp_users' => 'required|integer|min:10|max:50',
'b_quickpost' => 'required|integer|in:0,1',
'b_users_online' => 'required|integer|in:0,1',
'o_show_dot' => 'required|integer|in:0,1',
'b_show_dot' => 'required|integer|in:0,1',
'o_topic_views' => 'required|integer|in:0,1',
'o_quickjump' => 'required|integer|in:0,1',
'o_search_all_forums' => 'required|integer|in:0,1',
@ -420,9 +420,9 @@ class Options extends Admin
'caption' => 'Users online label',
'help' => 'Users online help',
],
'o_show_dot' => [
'b_show_dot' => [
'type' => 'radio',
'value' => $config->o_show_dot,
'value' => $config->b_show_dot,
'values' => $yn,
'caption' => 'User has posted label',
'help' => 'User has posted help',

View file

@ -509,7 +509,9 @@ class Update extends Admin
$this->c->config->b_quickpost = '1' == $this->c->config->o_quickpost ? 1 : 0;
$this->c->config->b_users_online = '1' == $this->c->config->o_users_online ? 1 : 0;
$this->c->config->b_censoring = '1' == $this->c->config->o_censoring ? 1 : 0;
$this->c->config->b_show_dot = '1' == $this->c->config->o_show_dot ? 1 : 0;
unset($this->c->config->o_show_dot);
unset($this->c->config->o_timeout_visit);
unset($this->c->config->o_timeout_online);
unset($this->c->config->o_redirect_delay);

View file

@ -44,7 +44,7 @@ class View extends Action
if (
! $this->c->user->isGuest
&& '1' == $this->c->config->o_show_dot
&& 1 == $this->c->config->b_show_dot
) {
$vars = [
':uid' => $this->c->user->id,