From: Hypolite Petovan Date: Sun, 7 May 2017 22:12:26 +0000 (-0400) Subject: Yet more global classes to escape X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f123f6df104118aa1c20d883d9e32f8b0764a92b;p=friendica.git Yet more global classes to escape --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 0b707856be..56e5c1b9fc 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -88,7 +88,7 @@ class Probe { if (!is_object($xrd)) return false; - $links = xml::element_to_array($xrd); + $links = \xml::element_to_array($xrd); if (!isset($links["xrd"]["link"])) return false; @@ -254,7 +254,7 @@ class Probe { public static function uri($uri, $network = "", $uid = 0, $cache = true) { if ($cache) { - $result = Cache::get("probe_url:".$network.":".$uri); + $result = \Cache::get("probe_url:".$network.":".$uri); if (!is_null($result)) { return $result; } @@ -300,7 +300,7 @@ class Probe { // Only store into the cache if the value seems to be valid if (!in_array($data['network'], array(NETWORK_PHANTOM, NETWORK_MAIL))) { - Cache::set("probe_url:".$network.":".$uri, $data, CACHE_DAY); + \Cache::set("probe_url:".$network.":".$uri, $data, CACHE_DAY); /// @todo temporary fix - we need a real contact update function that updates only changing fields /// The biggest problem is the avatar picture that could have a reduced image size. @@ -499,7 +499,7 @@ class Probe { return $webfinger; } - $xrd_arr = xml::element_to_array($xrd); + $xrd_arr = \xml::element_to_array($xrd); if (!isset($xrd_arr["xrd"]["link"])) return false; @@ -1172,7 +1172,7 @@ class Probe { $r = q("SELECT * FROM `mailacct` WHERE `uid` = %d AND `server` != '' LIMIT 1", intval($uid)); - if (dbm::is_result($x) && dbm::is_result($r)) { + if (\dbm::is_result($x) && \dbm::is_result($r)) { $mailbox = construct_mailbox_name($r[0]); $password = ''; openssl_private_decrypt(hex2bin($r[0]['pass']), $password,$x[0]['prvkey']);