From 7235704a2b01d864c6ef57c39cf2bd7661faae08 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 28 Mar 2016 18:54:27 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20pour=20TheOatMeal=20qui=20a=20chang=C3=A9?= =?UTF-8?q?=20l'organisation=20des=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bridges/TheOatMealBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/TheOatMealBridge.php b/bridges/TheOatMealBridge.php index 97aae693..9e8a0ff0 100644 --- a/bridges/TheOatMealBridge.php +++ b/bridges/TheOatMealBridge.php @@ -41,7 +41,7 @@ class TheOatmealBridge extends RssExpander{ $item = new Item(); $item->title = trim($newsItem->title); $this->message("browsing Oatmeal item ".var_export($newsItem, true)); - $item->uri=$newsItem->attributes($namespaces['rdf'])->about; + $item->uri=(string) $newsItem->attributes($namespaces['rdf'])->about; // now load that uri from cache $this->message("now loading page ".$item->uri); $articlePage = str_get_html($this->get_cached($item->uri)); @@ -53,7 +53,7 @@ class TheOatmealBridge extends RssExpander{ $item->content = $content->innertext; $this->message("dc content is ".var_export($dc, true)); - $item->name = $dc->creator; + $item->name = (string) $dc->creator; $item->timestamp = DateTime::createFromFormat(DateTime::ISO8601, $dc->date)->getTimestamp(); $this->message("writtem by ".$item->name." on ".$item->timestamp); return $item;