]> git.mxchange.org Git - friendica.git/commitdiff
Replace typehint App with AppHelper in mod folder
authorArt4 <art4@wlabs.de>
Sun, 10 Nov 2024 23:37:46 +0000 (23:37 +0000)
committerArt4 <art4@wlabs.de>
Sun, 10 Nov 2024 23:37:46 +0000 (23:37 +0000)
mod/item.php
mod/lostpass.php
mod/update_contact.php
mod/update_notes.php

index c195ce09fcf0da3c12bd44b6a864727df229dfa4..f184186e16252d81b9d5da60235db9e73f7f4315 100644 (file)
@@ -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();
index b16a4e10ec6267e49abf16728a6e8f5a225243a6..940546d951b3a46b875739989ab19d7b588bf530 100644 (file)
@@ -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];
index 76993c0ce3b9ae5b99f744c0f2b6d78a32e3d13f..30212e5589359cbec81471cab9996a8f9a00fc8f 100644 (file)
@@ -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)]);
index de455f5f0022bb6ab100ec9c5215df534a581ba3..93b5e95207b77bf31fd3f0ab095a53e3c4bd8776 100644 (file)
@@ -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);
 }