diff --git a/backend/controllers/settings/ListController.php b/backend/controllers/settings/ListController.php index a0302c1..62792e4 100644 --- a/backend/controllers/settings/ListController.php +++ b/backend/controllers/settings/ListController.php @@ -155,11 +155,11 @@ class ListController extends Controller if ($form->load(Yii::$app->request->post())) { $form->image = UploadedFile::getInstance($form, 'image'); if ($form->image && $form->validate()) { - if (!file_exists(Yii::getAlias('@staticRoot') . '/images/origin/favicon')) { - mkdir(Yii::getAlias('@staticRoot') . '/images/origin/favicon', 0777, true); + if (!file_exists(Yii::getAlias('@staticRoot') . '/origin/favicon')) { + mkdir(Yii::getAlias('@staticRoot') . '/origin/favicon', 0777, true); } - $form->image->saveAs(Yii::getAlias('@staticRoot') . '/images/origin/favicon/favicon.png'); + $form->image->saveAs(Yii::getAlias('@staticRoot') . '/origin/favicon/favicon.png'); $this->_service->newFavicon(); Yii::$app->session->setFlash('success', Yii::t('main', 'Favicon generation complete')); return $this->redirect(['settings/list/index']); diff --git a/backend/views/auth/login.php b/backend/views/auth/login.php index 4385d06..5ef8f5b 100644 --- a/backend/views/auth/login.php +++ b/backend/views/auth/login.php @@ -22,8 +22,8 @@ $fieldOptions2 = [