Use "getOwnerDataById" and "getOwnerDataByNick" to fetch owner data
This commit is contained in:
@@ -283,21 +283,6 @@ class Profile
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the profile for the given nick name
|
||||
*
|
||||
* Includes all available profile data
|
||||
*
|
||||
* @param string $nickname nick
|
||||
* @return array
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function getByNickname($nickname)
|
||||
{
|
||||
$profile = DBA::selectFirst('owner-view', [], ['nickname' => $nickname]);
|
||||
return $profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats a profile for display in the sidebar.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user