Replace App with AppHelper

This commit is contained in:
Art4 2024-11-21 09:56:56 +00:00
parent 9e2b192054
commit 4f1a4c4c8a

View file

@ -49,7 +49,7 @@ function photos_init()
Nav::setSelected('home'); Nav::setSelected('home');
if (DI::args()->getArgc() > 1) { if (DI::args()->getArgc() > 1) {
$owner = Profile::load(DI::app(), DI::args()->getArgv()[1], false); $owner = Profile::load(DI::appHelper(), DI::args()->getArgv()[1], false);
if (!isset($owner['account_removed']) || $owner['account_removed']) { if (!isset($owner['account_removed']) || $owner['account_removed']) {
throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.')); throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
} }