Remove requirement for App class in legacy mods

This commit is contained in:
Art4 2024-11-23 08:26:59 +00:00
parent 7dbf1bb8bb
commit 76d25a27b4
6 changed files with 12 additions and 17 deletions

View file

@ -8,12 +8,11 @@
* AJAX synchronisation of notes page
*/
use Friendica\AppHelper;
use Friendica\Core\System;
require_once 'mod/notes.php';
function update_notes_content(AppHelper $appHelper)
function update_notes_content()
{
$profile_uid = intval($_GET['p']);
@ -27,7 +26,7 @@ function update_notes_content(AppHelper $appHelper)
*
*/
$text = notes_content($appHelper, $profile_uid);
$text = notes_content($profile_uid);
System::htmlUpdateExit($text);
}