change code order to make shorter lines

This commit is contained in:
Evan Prodromou 2010-12-17 18:55:00 -05:00
parent 1a81356622
commit 120802b807

View File

@ -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);