Make list of locales working

This commit is contained in:
leosw
2018-10-18 22:18:33 +02:00
parent 604e42d323
commit b8295bb66f
3 changed files with 50 additions and 4 deletions

View File

@@ -108,6 +108,8 @@ if(isset($controller->splitted_url[1])) {
// If we are editing the profile
if(isset($controller->splitted_url[3]) && $controller->splitted_url[3]=="edit" && ($user->rankIsHigher("moderator") || $user->id == $userProfile->id)) {
$locales = new Locales;
$locales->getAll();
$head['js'] = "d.avatar.js";
if (isset($_POST['submit'])) {
$receivedUser = new User();