Gets Arc archive iterator working again after namespace changes, a=chris

Chris Pollett [2015-07-03 06:Jul:rd]
Gets Arc archive iterator working again after namespace changes, a=chris
Filename
library/archive_bundle_iterators/ArcArchiveBundleIterator.php
library/archive_bundle_iterators/OdpRdfArchiveBundleIterator.php
diff --git a/library/archive_bundle_iterators/ArcArchiveBundleIterator.php b/library/archive_bundle_iterators/ArcArchiveBundleIterator.php
index 53aa42f7d..77dc2e019 100644
--- a/library/archive_bundle_iterators/ArcArchiveBundleIterator.php
+++ b/library/archive_bundle_iterators/ArcArchiveBundleIterator.php
@@ -31,6 +31,7 @@
 namespace seekquarry\yioop\library\archive_bundle_iterators;

 use seekquarry\yioop\library\CrawlConstants;
+use seekquarry\yioop\library\FetchUrl;

 if (!defined('BASE_DIR')) {echo "BAD REQUEST"; exit();}
 /**
diff --git a/library/archive_bundle_iterators/OdpRdfArchiveBundleIterator.php b/library/archive_bundle_iterators/OdpRdfArchiveBundleIterator.php
index 7c0265989..ab9cb8d60 100644
--- a/library/archive_bundle_iterators/OdpRdfArchiveBundleIterator.php
+++ b/library/archive_bundle_iterators/OdpRdfArchiveBundleIterator.php
@@ -175,7 +175,7 @@ class OdpRdfArchiveBundleIterator extends TextArchiveBundleIterator
         $page_info = str_replace("d:Title","Title", $page_info);
         $page_info = str_replace("d:Description","Description", $page_info);
         $dom = new \DOMDocument();
-        $dom->loadXML($page_info);
+        @$dom->loadXML($page_info);
         $processMethod = "process".$tag;
         $site[self::IP_ADDRESSES] = [$this->header['ip_address']];
         $site[self::MODIFIED] = time();
ViewGit