From b28266b3d6e9529c2d39d4411697803028a404e8 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 5 Dec 2010 16:15:05 -0500 Subject: Convert Notice::asAtomEntry() to use Notice::asActivity() and Activity::asString() We had two ways to generate an activity entry from a notice; one through Notice::asAtomEntry() and one through Notice::asActivity() and Activity::asString(). The code paths had already diverged somewhat. I took the conditions that were in Notice::asAtomEntry() and made sure they were replicated in the other two functions. Then, I rewrote Notice::asAtomEntry() to use the other two functions instead. This change passes the ActivityGenerationTests unit tests, but there may be some other stuff that's not getting covered. --- lib/atomcategory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/atomcategory.php') diff --git a/lib/atomcategory.php b/lib/atomcategory.php index 4cc3b4f4d..9763023f7 100644 --- a/lib/atomcategory.php +++ b/lib/atomcategory.php @@ -72,6 +72,6 @@ class AtomCategory } $xs = new XMLStringer(); $xs->element('category', $attribs); - return $xs->asString(); + return $xs->getString(); } } -- cgit v1.2.3-54-g00ecf