]> git.mxchange.org Git - friendica.git/commitdiff
Probing via web frontend shouldn't use the cache.
authorMichael <heluecht@pirati.ca>
Tue, 23 May 2017 19:38:47 +0000 (19:38 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 23 May 2017 19:38:47 +0000 (19:38 +0000)
mod/probe.php

index abeccef446555f5f786db535fdb0dd2f7fd2580d..dfd4792c9b97131123ea81f846240fe46e11f0b6 100644 (file)
@@ -1,8 +1,7 @@
 <?php
 
 use Friendica\App;
-
-require_once 'include/probe.php';
+use Friendica\Network\Probe;
 
 function probe_content(App $a) {
 
@@ -22,7 +21,7 @@ function probe_content(App $a) {
 
        if (x($_GET, 'addr')) {
                $addr = trim($_GET['addr']);
-               $res = probe_url($addr);
+               $res = Probe::uri($addr, "", 0, false);
                $o .= '<pre>';
                $o .= str_replace("\n", '<br />', print_r($res, true));
                $o .= '</pre>';