Fixed newsfeed with curl

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2013-11-21 10:09:05 +01:00
parent a9a2d296bf
commit fcd537b091

View File

@@ -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.";
}
}