Move xml to namespace

Relocate xml from include to src
Related to #3878
This commit is contained in:
Adam Magness 2017-11-10 00:00:50 -05:00
parent 037d6ac17b
commit f245bc8359
12 changed files with 5394 additions and 5137 deletions

View file

@ -13,10 +13,9 @@ use Friendica\Core\System;
use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Database\DBM;
use Friendica\Util\Xml;
use dba;
use xml;
use DomXPath;
use DOMDocument;
@ -124,7 +123,7 @@ class Probe {
return array();
}
$links = xml::element_to_array($xrd);
$links = Xml::element_to_array($xrd);
if (!isset($links["xrd"]["link"])) {
logger("No xrd data found for ".$host, LOGGER_DEBUG);
return array();
@ -706,7 +705,7 @@ class Probe {
return false;
}
$xrd_arr = xml::element_to_array($xrd);
$xrd_arr = Xml::element_to_array($xrd);
if (!isset($xrd_arr["xrd"]["link"])) {
logger("No XML webfinger links for ".$url, LOGGER_DEBUG);
return false;