<?php
/**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
if ($arr['text']) {
if ($format == 'json') {
- System::jsonExit($arr['text']);
+ $this->jsonExit($arr['text']);
} else {
- System::httpExit($arr['text']);
+ $this->httpExit($arr['text']);
}
}
$ret['success'] = true;
}
- System::jsonExit($ret);
+ $this->jsonExit($ret);
} else {
- System::httpExit(BBCode::embedURL($url, empty($_GET['noAttachment']), $title, $description, $_GET['tags'] ?? ''));
+ $this->httpExit(BBCode::embedURL($url, empty($_GET['noAttachment']), $title, $description, $_GET['tags'] ?? ''));
}
}
}