mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 22:48:18 +00:00
Fix nullpointer
This commit is contained in:
@@ -54,7 +54,7 @@ abstract class Controller extends BaseController
|
|||||||
protected string $dateTimeFormat;
|
protected string $dateTimeFormat;
|
||||||
protected string $monthAndDayFormat;
|
protected string $monthAndDayFormat;
|
||||||
protected bool $convertToNative = false;
|
protected bool $convertToNative = false;
|
||||||
protected TransactionCurrency $defaultCurrency;
|
protected ?TransactionCurrency $defaultCurrency;
|
||||||
protected string $monthFormat;
|
protected string $monthFormat;
|
||||||
protected string $redirectUrl = '/';
|
protected string $redirectUrl = '/';
|
||||||
|
|
||||||
@@ -113,10 +113,11 @@ abstract class Controller extends BaseController
|
|||||||
$this->monthFormat = (string) trans('config.month_js', [], $locale);
|
$this->monthFormat = (string) trans('config.month_js', [], $locale);
|
||||||
$this->monthAndDayFormat = (string) trans('config.month_and_day_js', [], $locale);
|
$this->monthAndDayFormat = (string) trans('config.month_and_day_js', [], $locale);
|
||||||
$this->dateTimeFormat = (string) trans('config.date_time_js', [], $locale);
|
$this->dateTimeFormat = (string) trans('config.date_time_js', [], $locale);
|
||||||
$this->defaultCurrency = app('amount')->getDefaultCurrency();
|
|
||||||
$darkMode = 'browser';
|
$darkMode = 'browser';
|
||||||
|
$this->defaultCurrency =null;
|
||||||
// get shown-intro-preference:
|
// get shown-intro-preference:
|
||||||
if (auth()->check()) {
|
if (auth()->check()) {
|
||||||
|
$this->defaultCurrency = app('amount')->getDefaultCurrency();
|
||||||
$language = Steam::getLanguage();
|
$language = Steam::getLanguage();
|
||||||
$locale = Steam::getLocale();
|
$locale = Steam::getLocale();
|
||||||
$darkMode = app('preferences')->get('darkMode', 'browser')->data;
|
$darkMode = app('preferences')->get('darkMode', 'browser')->data;
|
||||||
|
Reference in New Issue
Block a user