X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fatomcategory.php;h=e527877cb090347bdf064222369756dcaede3346;hb=0fa00d510626f9131ca94edaf303b4c09691259f;hp=4cc3b4f4d4e31338c4fe29e82fadcfc928a2bc84;hpb=800b33590696e85480aa73c25261d80f1926e56d;p=quix0rs-gnu-social.git diff --git a/lib/atomcategory.php b/lib/atomcategory.php index 4cc3b4f4d4..e527877cb0 100644 --- a/lib/atomcategory.php +++ b/lib/atomcategory.php @@ -59,6 +59,13 @@ class AtomCategory } function asString() + { + $xs = new XMLStringer(); + $this->outputTo($xs); + return $xs->getString(); + } + + function outputTo($xo) { $attribs = array(); if ($this->term !== null) { @@ -70,8 +77,6 @@ class AtomCategory if ($this->label !== null) { $attribs['label'] = $this->label; } - $xs = new XMLStringer(); - $xs->element('category', $attribs); - return $xs->asString(); + $xo->element('category', $attribs); } }