mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-23 14:26:58 +00:00
Revert "Cleanup in preparation of an overhaul."
This reverts commit 5662a02a36
.
This commit is contained in:
@@ -33,7 +33,7 @@ class HomeController extends BaseController
|
||||
/** @var \FireflyIII\Shared\Preferences\PreferencesInterface $preferences */
|
||||
$preferences = App::make('FireflyIII\Shared\Preferences\PreferencesInterface');
|
||||
|
||||
$count = $acct->countAccountsByType(['Default account', 'Asset account']);
|
||||
$count = $acct->countAssetAccounts();
|
||||
|
||||
$start = Session::get('start', Carbon::now()->startOfMonth());
|
||||
$end = Session::get('end', Carbon::now()->endOfMonth());
|
||||
@@ -42,7 +42,7 @@ class HomeController extends BaseController
|
||||
// get the preference for the home accounts to show:
|
||||
$frontPage = $preferences->get('frontPageAccounts', []);
|
||||
if ($frontPage->data == []) {
|
||||
$accounts = $acct->getAccountsByType(['Default account', 'Asset account']);
|
||||
$accounts = $acct->getAssetAccounts();
|
||||
} else {
|
||||
$accounts = $acct->getByIds($frontPage->data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user