Move xml_status and http_status_exit
move functions
This commit is contained in:
parent
a32ba32ff4
commit
cd3643d174
18 changed files with 87 additions and 85 deletions
|
@ -11,6 +11,7 @@ use Friendica\Model\Contact;
|
|||
use Friendica\Model\Group;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Protocol\DFRN;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
function display_init(App $a)
|
||||
{
|
||||
|
@ -423,7 +424,7 @@ function display_content(App $a, $update = false, $update_uid = 0) {
|
|||
function displayShowFeed($item_id, $conversation) {
|
||||
$xml = DFRN::itemFeed($item_id, $conversation);
|
||||
if ($xml == '') {
|
||||
http_status_exit(500);
|
||||
Network::httpStatusExit(500);
|
||||
}
|
||||
header("Content-type: application/atom+xml");
|
||||
echo $xml;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue