mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
19 lines
348 B
PHP
19 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();
|
|
}
|
|
}
|