Move xml_status and http_status_exit

move functions
This commit is contained in:
Adam Magness 2018-01-26 23:37:55 -05:00
parent a32ba32ff4
commit cd3643d174
18 changed files with 87 additions and 85 deletions

View file

@ -12,6 +12,7 @@ use Friendica\Core\Config;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
use Friendica\Model\Profile;
use Friendica\Util\Network;
function hovercard_init(App $a)
{
@ -26,7 +27,7 @@ function hovercard_content()
// Get out if the system doesn't have public access allowed
if (intval(Config::get('system', 'block_public'))) {
http_status_exit(401);
Network::httpStatusExit(401);
}
// Return the raw content of the template. We use this to make templates usable for js functions.