Move z_fetch_url
move z_fetch_url method
This commit is contained in:
parent
c67452f72e
commit
2f9642392d
14 changed files with 58 additions and 60 deletions
|
@ -11,6 +11,7 @@ use Friendica\Core\L10n;
|
|||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
require_once "mod/proxy.php";
|
||||
|
||||
|
@ -733,7 +734,7 @@ function navbar_complete(App $a) {
|
|||
if (! $localsearch) {
|
||||
$p = (($a->pager['page'] != 1) ? '&p=' . $a->pager['page'] : '');
|
||||
|
||||
$x = z_fetch_url(get_server() . '/lsearch?f=' . $p . '&search=' . urlencode($search));
|
||||
$x = Network::zFetchURL(get_server() . '/lsearch?f=' . $p . '&search=' . urlencode($search));
|
||||
if ($x['success']) {
|
||||
$j = json_decode($x['body'],true);
|
||||
if ($j && isset($j['results'])) {
|
||||
|
|
|
@ -12,16 +12,6 @@ use Friendica\Object\Image;
|
|||
use Friendica\Util\Network;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function fetch_url($url, $binary = false, &$redirects = 0, $timeout = 0, $accept_content = null, $cookiejar = 0)
|
||||
{
|
||||
return Network::fetchURL($url, $binary, $redirects, $timeout, $accept_content, $cookiejar);
|
||||
}
|
||||
|
||||
function z_fetch_url($url, $binary = false, &$redirects = 0, $opts = [])
|
||||
{
|
||||
return Network::zFetchURL($url, $binary, $redirects, $opts);
|
||||
}
|
||||
|
||||
function post_url($url, $params, $headers = null, &$redirects = 0, $timeout = 0)
|
||||
{
|
||||
return Network::postURL($url, $params, $headers, $redirects, $timeout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue