This commit is contained in:
James Cole
2018-04-15 10:12:04 +02:00
parent 0c2c5d5344
commit ef62e31b61
13 changed files with 961 additions and 0 deletions

View File

@@ -98,6 +98,10 @@ class Controller extends BaseController
Log::debug(sprintf('Check if user has already seen intro with key "%s". Result is %d', $key, $shownDemo));
}
// share language
$language = Preferences::get('language', config('firefly.default_language', 'en_US'))->data;
View::share('language', $language);
View::share('shownDemo', $shownDemo);
View::share('current_route_name', $page);
View::share('original_route_name', Route::currentRouteName());