Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Fix not loaded env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
miyacorata committed Jun 10, 2020
1 parent 8553e8e commit 9c932a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/InfoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function clock(Request $request){
$event_txt = 'イベント情報を取得できませんでした';
}
// 時計表示モード
$clock_mode = $request->get('clock_mode') ?: env('CLOCK_DEFAULT_MODE','normal');
$clock_mode = $request->get('clock_mode') ?: config('ouranos.clockDefaultMode');
$clock_mode_available = ['normal', 'right'];
if(array_search($clock_mode, $clock_mode_available) === FALSE)abort(400,'Invalid clock mode.');
return view('clock',compact('feed_txt','birth_text','event_txt','clock_mode'));
Expand Down
1 change: 1 addition & 0 deletions config/ouranos.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'homeCardName' => env('HOME_CARD_NAME','yurikonanao_sunshinegirlofbeach'),
'clockCardName' => env('CLOCK_CARD_NAME','shihokitazawa_therapistonboat'),
'homeCardForce' => env('HOME_CARD_FORCE',false),
'clockDefaultMode' => env('CLOCK_DEFAULT_MODE','normal'),

'googleAnalytics' => env('GOOGLE_ANALYTICS','UA-000000000-0'),

Expand Down

0 comments on commit 9c932a6

Please # to comment.