Skip to content

Commit

Permalink
ログインステータスのマイグレーションで環境変数 ECCUBE_LOCALE が未設定の場合は日本語で登録する
Browse files Browse the repository at this point in the history
  • Loading branch information
okazy committed Mar 23, 2021
1 parent b898cc9 commit 17438a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/DoctrineMigrations/Version20210319122142.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public function up(Schema $schema): void
{
$lang = env('ECCUBE_LOCALE');
$statuses = [
LoginHistoryStatus::FAILURE => $lang === 'ja' ? '失敗' : 'Failure',
LoginHistoryStatus::SUCCESS => $lang === 'ja' ? '成功' : 'Success',
LoginHistoryStatus::FAILURE => $lang === 'en' ? 'Failure' : '失敗',
LoginHistoryStatus::SUCCESS => $lang === 'en' ? 'Success' : '成功',
];

$sortNo = $this->connection->fetchColumn('SELECT MAX(sort_no) + 1 FROM mtb_login_history_status');
Expand Down

0 comments on commit 17438a7

Please sign in to comment.