]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Salmon.php
Rename App Methods
[friendica.git] / src / Protocol / Salmon.php
index f30488ce140eeef304b7dd99eb8258707c11c014..b71be6e2fa55b590fa936e0ac782cb1aae6495a5 100644 (file)
@@ -139,7 +139,7 @@ class Salmon
                ]);
 
                $a = get_app();
-               $return_code = $a->get_curl_code();
+               $return_code = Network::getCurl()->getCode();
 
                // check for success, e.g. 2xx
 
@@ -163,7 +163,7 @@ class Salmon
                                'Content-type: application/magic-envelope+xml',
                                'Content-length: ' . strlen($salmon)
                        ]);
-                       $return_code = $a->get_curl_code();
+                       $return_code = Network::getCurl()->getCode();
                }
 
                if ($return_code > 299) {
@@ -185,7 +185,7 @@ class Salmon
                        Network::post($url, $salmon, [
                                'Content-type: application/magic-envelope+xml',
                                'Content-length: ' . strlen($salmon)]);
-                       $return_code = $a->get_curl_code();
+                       $return_code = Network::getCurl()->getCode();
                }
 
                logger('slapper for '.$url.' returned ' . $return_code);
@@ -194,7 +194,7 @@ class Salmon
                        return -1;
                }
 
-               if (($return_code == 503) && (stristr($a->get_curl_headers(), 'retry-after'))) {
+               if (($return_code == 503) && (stristr(Network::getCurl()->getHeaders(), 'retry-after'))) {
                        return -1;
                }