mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:10:13 +00:00
Move post_url
move post_url function
This commit is contained in:
parent
2f9642392d
commit
a32ba32ff4
12 changed files with 19 additions and 21 deletions
|
@ -10,6 +10,7 @@ use Friendica\Core\System;
|
|||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
require_once 'include/text.php';
|
||||
require_once 'mod/proxy.php';
|
||||
|
@ -58,9 +59,9 @@ function match_content(App $a)
|
|||
}
|
||||
|
||||
if (strlen(Config::get('system', 'directory'))) {
|
||||
$x = post_url(get_server().'/msearch', $params);
|
||||
$x = Network::postURL(get_server().'/msearch', $params);
|
||||
} else {
|
||||
$x = post_url(System::baseUrl() . '/msearch', $params);
|
||||
$x = Network::postURL(System::baseUrl() . '/msearch', $params);
|
||||
}
|
||||
|
||||
$j = json_decode($x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue