diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php index 220c35fa568..22990618080 100644 --- a/app/Http/Controllers/IndexController.php +++ b/app/Http/Controllers/IndexController.php @@ -3,7 +3,6 @@ namespace App\Http\Controllers; use App\Exceptions\ModelDBException; -use App\Facades\Lang; use App\ModelFunctions\ConfigFunctions; use App\ModelFunctions\SymLinkFunctions; use App\Models\Configs; @@ -40,9 +39,6 @@ public function __construct(ConfigFunctions $configFunctions, SymLinkFunctions $ public function show(): View { if (Configs::getValueAsBool('landing_page_enable')) { - $lang = Lang::get_lang(); - $lang['language'] = Configs::getValueAsString('lang'); - $infos = $this->configFunctions->get_pages_infos(); $menus = Page::menu()->get(); @@ -55,7 +51,6 @@ public function show(): View $page_config['display_socials'] = false; return view('landing', [ - 'locale' => $lang, 'title' => $title, 'infos' => $infos, 'menus' => $menus, @@ -94,9 +89,6 @@ public function gallery(): View $this->symLinkFunctions->remove_outdated(); $infos = $this->configFunctions->get_pages_infos(); - $lang = Lang::get_lang(); - $lang['language'] = Configs::getValueAsString('lang'); - $title = Configs::getValueAsString('site_title'); $rss_enable = Configs::getValueAsBool('rss_enable'); $page_config = []; @@ -104,7 +96,6 @@ public function gallery(): View $page_config['display_socials'] = Configs::getValueAsBool('display_social_in_gallery'); return view('gallery', [ - 'locale' => $lang, 'title' => $title, 'infos' => $infos, 'page_config' => $page_config, diff --git a/resources/views/gallery.blade.php b/resources/views/gallery.blade.php index e8dc234e3ec..ce0e7d85659 100644 --- a/resources/views/gallery.blade.php +++ b/resources/views/gallery.blade.php @@ -23,132 +23,132 @@
- +
- + ×
- + -{{-- {{ $locale['HOSTED_WITH_LYCHEE'] }}--}} +{{-- {{ Lang::get('HOSTED_WITH_LYCHEE') }}--}}
- +
- + ×
- + - +
- + - + - + - + - - + - + - + - + - + - + - + - +
- + - + - + - + - + - - + - + - + - + - + - + - + @@ -156,7 +156,7 @@
- + @@ -165,7 +165,7 @@
- + @@ -195,7 +195,7 @@ diff --git a/resources/views/includes/footer.blade.php b/resources/views/includes/footer.blade.php index 7736a57401a..5dac6e0ae5a 100644 --- a/resources/views/includes/footer.blade.php +++ b/resources/views/includes/footer.blade.php @@ -9,7 +9,7 @@ @if($infos['copyright_enable'] == '1') + {!! sprintf(Lang::get('FOOTER_COPYRIGHT'), $infos['owner'], $infos['copyright_year']) !!}

@endif @if($infos['additional_footer_text'] != '') @@ -18,6 +18,6 @@ @if($page_config['show_hosted_by']) -

{{ $locale['HOSTED_WITH_LYCHEE'] }}

+

{{ Lang::get('HOSTED_WITH_LYCHEE') }}

@endif
diff --git a/resources/views/layouts/gallery.blade.php b/resources/views/layouts/gallery.blade.php index 016e03d7d4a..cce44a6eec7 100644 --- a/resources/views/layouts/gallery.blade.php +++ b/resources/views/layouts/gallery.blade.php @@ -1,5 +1,5 @@ - + @include('includes.head') diff --git a/resources/views/layouts/simple.blade.php b/resources/views/layouts/simple.blade.php index 9a2049a837c..b0038ca3b37 100644 --- a/resources/views/layouts/simple.blade.php +++ b/resources/views/layouts/simple.blade.php @@ -1,5 +1,5 @@ - + @include('includes.head') diff --git a/resources/views/view.blade.php b/resources/views/view.blade.php index 821d0eefa8d..ec256923bee 100644 --- a/resources/views/view.blade.php +++ b/resources/views/view.blade.php @@ -58,7 +58,7 @@