X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fdfrn_request.php;h=4efb4119e1c7df065ec6c29fd0091f00b1533149;hb=47bd3243cdb4a4840ca4d40452402a86b792ce1b;hp=8e461cbb3f50ed4c0b36c74f2429c53b65f58e2a;hpb=82b423c5ac3269d39e6384fa3c43d1d9e5285ad4;p=friendica.git diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 8e461cbb3f..4efb4119e1 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -13,10 +13,10 @@ */ use Friendica\App; +use Friendica\Network\Probe; -require_once('include/Scrape.php'); -require_once('include/Probe.php'); require_once 'include/enotify.php'; +require_once 'include/probe.php'; require_once 'include/group.php'; function dfrn_request_init(App $a) { @@ -133,7 +133,7 @@ function dfrn_request_post(App $a) { if (! x($parms,'photo')) { notice( t('Warning: profile location has no profile photo.') . EOL ); } - $invalid = Probe::valid_dfrn($parms); + $invalid = Probe::validDfrn($parms); if ($invalid) { notice( sprintf( tt("%d required parameter was not found at the given location", "%d required parameters were not found at the given location", @@ -455,7 +455,7 @@ function dfrn_request_post(App $a) { $network = $data["network"]; // Canonicalise email-style profile locator - $url = Probe::webfinger_dfrn($url,$hcard); + $url = Probe::webfingerDfrn($url,$hcard); if (substr($url,0,5) === 'stat:') { @@ -535,7 +535,7 @@ function dfrn_request_post(App $a) { if (! x($parms,'photo')) { notice( t('Warning: profile location has no profile photo.') . EOL ); } - $invalid = Probe::valid_dfrn($parms); + $invalid = Probe::validDfrn($parms); if ($invalid) { notice( sprintf( tt("%d required parameter was not found at the given location", "%d required parameters were not found at the given location",