mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 20:04:32 +02:00
Replace App with AppHelper
This commit is contained in:
parent
9e2b192054
commit
4f1a4c4c8a
1 changed files with 1 additions and 1 deletions
|
@ -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.'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue