Skip to content
Snippets Groups Projects
Commit de814baf authored by Alex Barth's avatar Alex Barth
Browse files

Suppress namespace warnings when parsing feeds for subscription in PuSHSubscriber.inc.

parent 3e36f935
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,8 @@
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
----------------------------------
- alex_b: Suppress namespace warnings when parsing feeds for subscription in
PuSHSubscriber.inc
- #724184 ekes: catch failures when parsing for PubSubHubbub hub and self.
- #706984 lyricnz: Add FeedsSimplePie::parseExtensions() to allow parsing to be
customized.
......
......@@ -76,7 +76,7 @@ class PuSHSubscriber {
$data = curl_exec($request);
if (curl_getinfo($request, CURLINFO_HTTP_CODE) == 200) {
try {
$xml = new SimpleXMLElement($data);
$xml = @ new SimpleXMLElement($data);
$xml->registerXPathNamespace('atom', 'http://www.w3.org/2005/Atom');
if (empty($hub) && $hub = @current($xml->xpath("//atom:link[attribute::rel='hub']"))) {
$hub = (string) $hub->attributes()->href;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment