mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
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
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue