]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/HomeController.php
Fixed role permission removal bug
[bookstack] / app / Http / Controllers / HomeController.php
index 7892fe8aefa54945aaba58c29d7aaaab1f31002e..7f60d7009f15e95e64746e0fa1fa5c8487d6b744 100644 (file)
@@ -46,7 +46,7 @@ class HomeController extends Controller
      * @return \Illuminate\Contracts\Routing\ResponseFactory|\Symfony\Component\HttpFoundation\Response
      */
     public function getTranslations() {
-        $locale = trans()->getLocale();
+        $locale = app()->getLocale();
         $cacheKey = 'GLOBAL_TRANSLATIONS_' . $locale;
         if (cache()->has($cacheKey) && config('app.env') !== 'development') {
             $resp = cache($cacheKey);