From fcd537b091d729ce0f0461d7df97d6ac3384e4f1 Mon Sep 17 00:00:00 2001 From: "Florian Aders (EleRas)" Date: Thu, 21 Nov 2013 10:09:05 +0100 Subject: [PATCH] Fixed newsfeed with curl Signed-off-by: Florian Aders (EleRas) --- lib/ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ajax.php b/lib/ajax.php index 150a5c31..a42b2f66 100644 --- a/lib/ajax.php +++ b/lib/ajax.php @@ -41,7 +41,7 @@ if ($action == "newsfeed") { curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); - $news = simplexml_load_file(trim($output)); + $news = simplexml_load_string(trim($output)); } else { $news = false; } @@ -62,4 +62,4 @@ if ($action == "newsfeed") { } } else { echo "No action set."; -} \ No newline at end of file +}