Changed function name

This commit is contained in:
Michael 2021-08-09 15:29:07 +00:00
parent 9f01052dd2
commit b8fa75b2dd
34 changed files with 54 additions and 54 deletions

View file

@ -56,7 +56,7 @@ class Crop extends BaseSettings
$selectionW = intval($_POST['width'] ?? 0);
$selectionH = intval($_POST['height'] ?? 0);
$path = 'profile/' . DI::app()->getNickname();
$path = 'profile/' . DI::app()->getUserNickname();
$base_image = Photo::selectFirst([], ['resource-id' => $resource_id, 'uid' => local_user(), 'scale' => $scale]);
if (DBA::isResult($base_image)) {
@ -184,7 +184,7 @@ class Crop extends BaseSettings
info(DI::l10n()->t('Profile picture successfully updated.'));
DI::baseUrl()->redirect('profile/' . DI::app()->getNickname());
DI::baseUrl()->redirect('profile/' . DI::app()->getUserNickname());
}
$Image = Photo::getImageForPhoto($photos[0]);

View file

@ -133,7 +133,7 @@ class Index extends BaseSettings
DI::l10n()->t('or'),
($newuser) ?
'<a href="' . DI::baseUrl() . '">' . DI::l10n()->t('skip this step') . '</a>'
: '<a href="' . DI::baseUrl() . '/photos/' . DI::app()->getNickname() . '">'
: '<a href="' . DI::baseUrl() . '/photos/' . DI::app()->getUserNickname() . '">'
. DI::l10n()->t('select a photo from your photo albums') . '</a>'
),
]);