소스 검색

Change o_show_dot

Visman 3 년 전
부모
커밋
0dd4668665
4개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      app/Models/Pages/Admin/Install.php
  2. 3 3
      app/Models/Pages/Admin/Options.php
  3. 2 0
      app/Models/Pages/Admin/Update.php
  4. 1 1
      app/Models/Topic/View.php

+ 1 - 1
app/Models/Pages/Admin/Install.php

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

+ 3 - 3
app/Models/Pages/Admin/Options.php

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

+ 2 - 0
app/Models/Pages/Admin/Update.php

@@ -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_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_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_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_visit);
         unset($this->c->config->o_timeout_online);
         unset($this->c->config->o_timeout_online);
         unset($this->c->config->o_redirect_delay);
         unset($this->c->config->o_redirect_delay);

+ 1 - 1
app/Models/Topic/View.php

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