]> git.mxchange.org Git - friendica.git/commitdiff
Yet more global classes to escape
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 7 May 2017 22:12:26 +0000 (18:12 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 7 May 2017 22:12:26 +0000 (18:12 -0400)
src/Network/Probe.php

index 0b707856be0fb526f08c783705425f96b560e565..56e5c1b9fc93ef85a35f78cadc9ee12accaa0d10 100644 (file)
@@ -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']);