diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index ae3aebbf..c24134a7 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -114,9 +114,15 @@ class Index extends Backend */ public function logout() { - $this->auth->logout(); - Hook::listen("admin_logout_after", $this->request); - $this->success(__('Logout successful'), 'index/login'); + if ($this->request->isPost()) { + $this->auth->logout(); + Hook::listen("admin_logout_after", $this->request); + $this->success(__('Logout successful'), 'index/login'); + } + $html = "
"; + $html .= ""; + + return $html; } } diff --git a/application/admin/view/general/attachment/select.html b/application/admin/view/general/attachment/select.html index 69e31b20..a413dd15 100644 --- a/application/admin/view/general/attachment/select.html +++ b/application/admin/view/general/attachment/select.html @@ -1,10 +1,8 @@ -{if !$Think.get.mimetype} -{/if}