Some code cleanup.

This commit is contained in:
James Cole
2016-03-29 16:16:14 +02:00
parent 6fdfec3967
commit 08b5e66628
9 changed files with 16 additions and 19 deletions

View File

@@ -41,8 +41,8 @@ class Controller extends BaseController
View::share('hideTags', false);
if (Auth::check()) {
$pref = Preferences::get('language', env('DEFAULT_LANGUAGE', 'en_US'));
$lang = $pref->data;
$pref = Preferences::get('language', env('DEFAULT_LANGUAGE', 'en_US'));
$lang = $pref->data;
App::setLocale($lang);
Carbon::setLocale(substr($lang, 0, 2));