mirror of
https://github.com/friendica/friendica
synced 2025-05-04 23:04:09 +02:00
XML class standards
updated the xml class for PSR-2
This commit is contained in:
parent
aac2258bc3
commit
ddacbf2c13
9 changed files with 210 additions and 203 deletions
|
@ -1913,7 +1913,7 @@ class Diaspora
|
|||
"title" => "",
|
||||
"content" => $parent_body));
|
||||
|
||||
return XML::from_array($xmldata, $xml, true);
|
||||
return XML::fromArray($xmldata, $xml, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2345,7 +2345,7 @@ class Diaspora
|
|||
"id" => $contact["url"]."/".$contact["name"],
|
||||
"link" => $link));
|
||||
|
||||
return XML::from_array($xmldata, $xml, true);
|
||||
return XML::fromArray($xmldata, $xml, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3040,7 +3040,7 @@ class Diaspora
|
|||
|
||||
$namespaces = array("me" => "http://salmon-protocol.org/ns/magic-env");
|
||||
|
||||
return XML::from_array($xmldata, $xml, false, $namespaces);
|
||||
return XML::fromArray($xmldata, $xml, false, $namespaces);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3173,7 +3173,7 @@ class Diaspora
|
|||
{
|
||||
$data = array($type => $message);
|
||||
|
||||
return XML::from_array($data, $xml);
|
||||
return XML::fromArray($data, $xml);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue