]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change code order to make shorter lines
authorEvan Prodromou <evan@status.net>
Fri, 17 Dec 2010 23:55:00 +0000 (18:55 -0500)
committerEvan Prodromou <evan@status.net>
Fri, 17 Dec 2010 23:55:00 +0000 (18:55 -0500)
lib/feedimporter.php

index 0b94eeb9b85843688619eec0e0be76ecad6bad3e..e46858cc51824510d4610f9392cfbab5a1eb2f57 100644 (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);