diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-17 12:15:40 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-17 12:15:40 -0700 |
commit | 67f2f01c5e1cad743e849cdaaaf11deb6e435844 (patch) | |
tree | cad1ddbfef5a9b28bc8c13cf7f4ba6240bf6f7d0 /lib/activity.php | |
parent | 1c942afa60b7ec5a8f0855a14d32110837270119 (diff) | |
parent | ca5612c451e4dabde107ff2cfbc737a2f69136df (diff) |
Merge branch 'testing' into 0.9.x
Diffstat (limited to 'lib/activity.php')
-rw-r--r-- | lib/activity.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/activity.php b/lib/activity.php index ae65fe36f..d84eabf7c 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -1083,15 +1083,11 @@ class Activity $this->entry = $entry; - // @fixme Don't send in a DOMDocument + // Insist on a feed's root DOMElement; don't allow a DOMDocument if ($feed instanceof DOMDocument) { - common_log( - LOG_WARNING, - 'Activity::__construct() - ' - . 'DOMDocument passed in for feed by mistake. ' - . "Expecting a 'feed' DOMElement." + throw new ClientException( + _("Expecting a root feed element but got a whole XML document.") ); - $feed = $feed->getElementsByTagName('feed')->item(0); } $this->feed = $feed; |