浏览代码

2018-04-23

Visman 7 年之前
父节点
当前提交
009754078b

+ 0 - 1
app/Models/Pages/Admin/Censoring.php

@@ -123,7 +123,6 @@ class Censoring extends Admin
 
 
         $this->nameTpl   = 'admin/form';
         $this->nameTpl   = 'admin/form';
         $this->aIndex    = 'censoring';
         $this->aIndex    = 'censoring';
-#        $this->titles    = \ForkBB\__('Censoring');
         $this->form      = $form;
         $this->form      = $form;
         $this->classForm = 'editcensorship';
         $this->classForm = 'editcensorship';
         $this->titleForm = \ForkBB\__('Censoring');
         $this->titleForm = \ForkBB\__('Censoring');

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

@@ -395,7 +395,7 @@ class Forums extends Admin
 
 
                 $this->c->Cache->delete('forums_mark');
                 $this->c->Cache->delete('forums_mark');
 
 
-                return $this->c->Redirect->page('AdminForums')->message($message);
+                return $this->c->Redirect->page('AdminForumsEdit', ['id' => $forum->id])->message($message);
             }
             }
 
 
             $this->fIswev = $v->getErrors();
             $this->fIswev = $v->getErrors();

+ 2 - 2
app/Models/Pages/Admin/Groups.php

@@ -297,7 +297,7 @@ class Groups extends Admin
 
 
         if (null === $group->g_id) {
         if (null === $group->g_id) {
             $message = \ForkBB\__('Group added redirect');
             $message = \ForkBB\__('Group added redirect');
-            $newId   = $this->c->groups->insert($group);
+            $this->c->groups->insert($group);
 
 
             $this->c->groups->Perm->copy($baseGroup, $group);
             $this->c->groups->Perm->copy($baseGroup, $group);
         } else {
         } else {
@@ -313,7 +313,7 @@ class Groups extends Admin
 
 
         $this->c->Cache->delete('forums_mark');
         $this->c->Cache->delete('forums_mark');
 
 
-        return $this->c->Redirect->page('AdminGroups')->message($message);
+        return $this->c->Redirect->page('AdminGroupsEdit', ['id' => $group->g_id])->message($message);
     }
     }
 
 
     /**
     /**

+ 0 - 1
app/Models/Pages/Admin/Maintenance.php

@@ -147,7 +147,6 @@ class Maintenance extends Admin
 
 
         $this->nameTpl         = 'admin/maintenance';
         $this->nameTpl         = 'admin/maintenance';
         $this->aIndex          = 'maintenance';
         $this->aIndex          = 'maintenance';
-#        $this->titles          = \ForkBB\__('Maintenance');
 
 
         return $this;
         return $this;
     }
     }

+ 0 - 1
app/Models/Pages/Admin/Users.php

@@ -205,7 +205,6 @@ class Users extends Admin
 
 
         $this->nameTpl    = 'admin/users';
         $this->nameTpl    = 'admin/users';
         $this->aIndex     = 'users';
         $this->aIndex     = 'users';
-#        $this->titles     = \ForkBB\__('Users');
         $this->formSearch = $this->formSearch($data);
         $this->formSearch = $this->formSearch($data);
 
 
         if ($this->user->isAdmin) {
         if ($this->user->isAdmin) {