fix(web): set locale
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-18 13:41:17 +08:00
parent 6ee92bc5ee
commit df6024c99f
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -9,7 +9,7 @@ class UOJLocale {
public static function init() { public static function init() {
if (UOJRequest::get('locale')) { if (UOJRequest::get('locale')) {
UOJLocale::setLocale(UOJRequest::get('locale')); UOJLocale::setLocale(UOJRequest::get('locale'));
redirectTo(UOJContext::requestURI()); redirectTo(UOJContext::requestPath());
} }
self::requireModule('basic'); self::requireModule('basic');