Changes:
- added missing type-hints - added documentation - removed parameter $baseURL while it can be locally get the same way but lesser parameter - used ActivityNamespace::SALMON_ME - changed double-quotes to single
This commit is contained in:
parent
074bae33c9
commit
cfa575b8e5
10 changed files with 71 additions and 35 deletions
|
|
@ -128,7 +128,7 @@ class Diaspora
|
|||
return false;
|
||||
}
|
||||
|
||||
$children = $basedom->children('http://salmon-protocol.org/ns/magic-env');
|
||||
$children = $basedom->children(ActivityNamespace::SALMON_ME);
|
||||
|
||||
if (sizeof($children) == 0) {
|
||||
Logger::notice('XML has no children');
|
||||
|
|
@ -2969,7 +2969,7 @@ class Diaspora
|
|||
]
|
||||
];
|
||||
|
||||
$namespaces = ['me' => 'http://salmon-protocol.org/ns/magic-env'];
|
||||
$namespaces = ['me' => ActivityNamespace::SALMON_ME];
|
||||
|
||||
return XML::fromArray($xmldata, $xml, false, $namespaces);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue