Yet more global classes to escape

2022.09-rc
Hypolite Petovan 2017-05-07 18:12:26 -04:00
rodzic 45ec3fb5d8
commit f123f6df10
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -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']);