forked from GNUsocial/gnu-social
change code order to make shorter lines
This commit is contained in:
parent
1a81356622
commit
120802b807
@ -68,12 +68,13 @@ class FeedImporter extends QueueHandler
|
||||
try {
|
||||
$doc = DOMDocument::loadXML($xml);
|
||||
|
||||
if ($doc->documentElement->namespaceURI != Activity::ATOM ||
|
||||
$doc->documentElement->localName != 'feed') {
|
||||
$feed = $doc->documentElement;
|
||||
|
||||
if ($feed->namespaceURI != Activity::ATOM ||
|
||||
$feed->localName != 'feed') {
|
||||
throw new ClientException(_("Not an atom feed."));
|
||||
}
|
||||
|
||||
$feed = $doc->documentElement;
|
||||
|
||||
$author = ActivityUtils::getFeedAuthor($feed);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user