Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Share primary currency to all pages.
James Cole19e36f6f6ea4
diff --git a/app/Http/Controllers/Budget/IndexController.php b/app/Http/Controllers/Budget/IndexController.phpindex 78f9e7179c..8b11d50ed8 100644--- a/app/Http/Controllers/Budget/IndexController.php+++ b/app/Http/Controllers/Budget/IndexController.php@@ -135,7 +135,6 @@ class IndexController extends Controller// get all inactive budgets, and simply list them:$inactive = $this->repository->getInactiveBudgets();- $primaryCurrency = $this->primaryCurrency;return view('budgets.index',@@ -148,7 +147,6 @@ class IndexController extends Controller'budgets','currencies','periodTitle',- 'primaryCurrency','activeDaysPassed','activeDaysLeft','inactive',diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.phpindex dc282fbc07..cdfa0c38f9 100644--- a/app/Http/Controllers/Controller.php+++ b/app/Http/Controllers/Controller.php@@ -140,6 +140,7 @@ abstract class Controller extends BaseControllerView::share('language', $language);View::share('locale', $locale);View::share('convertToPrimary', $this->convertToPrimary);+ View::share('primaryCurrency', $this->primaryCurrency);View::share('shownDemo', $shownDemo);View::share('current_route_name', $page);View::share('original_route_name', Route::currentRouteName());