mirror of
https://github.com/friendica/friendica
synced 2025-05-06 22:24:09 +02:00
Move xml to namespace
Relocate xml from include to src Related to #3878
This commit is contained in:
parent
037d6ac17b
commit
f245bc8359
12 changed files with 5394 additions and 5137 deletions
|
@ -17,10 +17,10 @@ use Friendica\Core\PConfig;
|
|||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Network\Probe;
|
||||
use Friendica\Util\Xml;
|
||||
|
||||
use dba;
|
||||
use SimpleXMLElement;
|
||||
use xml;
|
||||
|
||||
require_once 'include/items.php';
|
||||
require_once 'include/bb2diaspora.php';
|
||||
|
@ -672,7 +672,7 @@ class Diaspora
|
|||
if (!in_array($fieldname, array("parent_author_signature", "target_author_signature"))
|
||||
|| ($orig_type == "relayable_retraction")
|
||||
) {
|
||||
xml::copy($entry, $fields, $fieldname);
|
||||
Xml::copy($entry, $fields, $fieldname);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1912,7 +1912,7 @@ class Diaspora
|
|||
"title" => "",
|
||||
"content" => $parent_body));
|
||||
|
||||
return xml::from_array($xmldata, $xml, true);
|
||||
return Xml::from_array($xmldata, $xml, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2344,7 +2344,7 @@ class Diaspora
|
|||
"id" => $contact["url"]."/".$contact["name"],
|
||||
"link" => $link));
|
||||
|
||||
return xml::from_array($xmldata, $xml, true);
|
||||
return Xml::from_array($xmldata, $xml, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3039,7 +3039,7 @@ class Diaspora
|
|||
|
||||
$namespaces = array("me" => "http://salmon-protocol.org/ns/magic-env");
|
||||
|
||||
return xml::from_array($xmldata, $xml, false, $namespaces);
|
||||
return Xml::from_array($xmldata, $xml, false, $namespaces);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3172,7 +3172,7 @@ class Diaspora
|
|||
{
|
||||
$data = array($type => $message);
|
||||
|
||||
return xml::from_array($data, $xml);
|
||||
return Xml::from_array($data, $xml);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue