diff --git a/mod/item.php b/mod/item.php index c195ce09fc..f184186e16 100644 --- a/mod/item.php +++ b/mod/item.php @@ -16,7 +16,7 @@ * information. */ -use Friendica\App; +use Friendica\AppHelper; use Friendica\Content\Conversation; use Friendica\Content\Text\BBCode; use Friendica\Core\Hook; @@ -330,7 +330,7 @@ function item_post_return($baseurl, $return_path) System::jsonExit($json); } -function item_content(App $a) +function item_content(AppHelper $appHelper) { if (!DI::userSession()->isAuthenticated()) { throw new HTTPException\UnauthorizedException(); diff --git a/mod/lostpass.php b/mod/lostpass.php index b16a4e10ec..940546d951 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -7,7 +7,7 @@ * */ -use Friendica\App; +use Friendica\AppHelper; use Friendica\Core\Renderer; use Friendica\Database\DBA; use Friendica\DI; @@ -15,7 +15,7 @@ use Friendica\Model\User; use Friendica\Util\DateTimeFormat; use Friendica\Util\Strings; -function lostpass_post(App $a) +function lostpass_post(AppHelper $a) { $loginame = trim($_POST['login-name']); if (!$loginame) { @@ -78,7 +78,7 @@ function lostpass_post(App $a) DI::baseUrl()->redirect(); } -function lostpass_content(App $a) +function lostpass_content(AppHelper $appHelper) { if (DI::args()->getArgc() > 1) { $pwdreset_token = DI::args()->getArgv()[1]; diff --git a/mod/update_contact.php b/mod/update_contact.php index 76993c0ce3..30212e5589 100644 --- a/mod/update_contact.php +++ b/mod/update_contact.php @@ -9,14 +9,14 @@ * */ -use Friendica\App; +use Friendica\AppHelper; use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Post; use Friendica\Model\Contact; -function update_contact_content(App $a) +function update_contact_content(AppHelper $appHelper) { if (!empty(DI::args()->get(1)) && !empty($_GET['force'])) { $contact = DBA::selectFirst('account-user-view', ['pid', 'deleted'], ['id' => DI::args()->get(1)]); diff --git a/mod/update_notes.php b/mod/update_notes.php index de455f5f00..93b5e95207 100644 --- a/mod/update_notes.php +++ b/mod/update_notes.php @@ -8,13 +8,12 @@ * AJAX synchronisation of notes page */ -use Friendica\App; +use Friendica\AppHelper; use Friendica\Core\System; -use Friendica\DI; require_once 'mod/notes.php'; -function update_notes_content(App $a) +function update_notes_content(AppHelper $appHelper) { $profile_uid = intval($_GET['p']); @@ -28,7 +27,7 @@ function update_notes_content(App $a) * */ - $text = notes_content($a, $profile_uid); + $text = notes_content($appHelper, $profile_uid); System::htmlUpdateExit($text); }