1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 16:24:29 +00:00
pixelfed/app/Http/Controllers/SiteController.php

19 lines
348 B
PHP
Raw Normal View History

2018-06-01 03:12:06 +00:00
<?php
namespace App\Http\Controllers;
2018-06-05 07:49:05 +00:00
use App;
2018-06-01 03:12:06 +00:00
use Illuminate\Http\Request;
class SiteController extends Controller
{
2018-06-05 07:49:05 +00:00
public function changeLocale(Request $request, $locale)
{
if(!App::isLocale($locale)) {
return redirect()->back();
}
App::setLocale($locale);
return redirect()->back();
}
2018-06-01 03:12:06 +00:00
}