diff options
author | Brion Vibber <brion@pobox.com> | 2010-08-13 10:51:00 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-08-13 10:51:00 -0700 |
commit | 115231f917c9c9c67fe3768310c4852d8e1cada1 (patch) | |
tree | a00b5388b4567a7033968ca1b885bd3d714eb929 /plugins/OStatus/lib/discoveryhints.php | |
parent | 6787b377c0b91fa3503077e4ba0efc75565a2ded (diff) |
Suppress whinging during HTML parsing in profile page discovery for things that turn out to be XML feeds with funny namespaces.
Diffstat (limited to 'plugins/OStatus/lib/discoveryhints.php')
-rw-r--r-- | plugins/OStatus/lib/discoveryhints.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/OStatus/lib/discoveryhints.php b/plugins/OStatus/lib/discoveryhints.php index 34c9be277..fa2ead732 100644 --- a/plugins/OStatus/lib/discoveryhints.php +++ b/plugins/OStatus/lib/discoveryhints.php @@ -114,9 +114,10 @@ class DiscoveryHints { static function _hcard($body, $url) { - // DOMDocument::loadHTML may throw warnings on unrecognized elements. + // DOMDocument::loadHTML may throw warnings on unrecognized elements, + // and notices on unrecognized namespaces. - $old = error_reporting(error_reporting() & ~E_WARNING); + $old = error_reporting(error_reporting() & ~(E_WARNING | E_NOTICE)); $doc = new DOMDocument(); $doc->loadHTML($body); |