Update controllers and models

This commit is contained in:
DariusIII
2026-03-26 22:54:34 +01:00
parent 1a6e999e39
commit 1f031e1284
13 changed files with 45 additions and 129 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ class ProfileController extends BasePageController
// If both 'id' and 'name' are specified, 'id' should take precedence.
if ($altID === false && $altUsername !== false) {
$user = User::getByUsername($altUsername);
$user = User::findByUsername($altUsername);
if ($user) {
$this->userdata = $user;
$altID = $user['id'];