1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 17:56:48 +00:00
pixelfed/app/Http/Controllers/SiteController.php
2018-06-05 01:49:05 -06:00

18 lines
348 B
PHP

<?php
namespace App\Http\Controllers;
use App;
use Illuminate\Http\Request;
class SiteController extends Controller
{
public function changeLocale(Request $request, $locale)
{
if(!App::isLocale($locale)) {
return redirect()->back();
}
App::setLocale($locale);
return redirect()->back();
}
}