X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fatom10feed.php;h=77e05b8ca56f5d4ee4d461fb1bc15c0b46c265d5;hb=dd61ae8fbeee64c85f8186672292335592be1ff5;hp=2d342e7854a8b56d29fa9e53405ff84f68c71a48;hpb=79b392a39e9a847c398b697cf8f982a6b220ed56;p=quix0rs-gnu-social.git diff --git a/lib/atom10feed.php b/lib/atom10feed.php index 2d342e7854..77e05b8ca5 100644 --- a/lib/atom10feed.php +++ b/lib/atom10feed.php @@ -109,7 +109,8 @@ class Atom10Feed extends XMLStringer $xs->element('name', null, $name); } else { throw new Atom10FeedException( - 'author element must contain a name element.' + // TRANS: Atom feed exception thrown when an author element does not contain a name element. + _('Author element must contain a name element.') ); } @@ -145,18 +146,6 @@ class Atom10Feed extends XMLStringer } } - /** - * Add a activity feed subject via raw XML string - * - * @param string $xmlSubject An XML string representation of the subject - * - * @return void - */ - function setActivitySubject($xmlSubject) - { - $this->subject = $xmlSubject; - } - function getNamespaces() { return $this->namespaces; @@ -164,7 +153,7 @@ class Atom10Feed extends XMLStringer function initFeed() { - $this->xw->startDocument('1.0', 'UTF-8'); + $this->startXML(); $commonAttrs = array('xml:lang' => 'en-US'); foreach ($this->namespaces as $prefix => $uri) { if ($prefix == '') { @@ -178,8 +167,8 @@ class Atom10Feed extends XMLStringer $this->element( 'generator', array( - 'url' => 'http://status.net', - 'version' => STATUSNET_VERSION + 'uri' => 'http://status.net', + 'version' => GNUSOCIAL_VERSION ), 'StatusNet' ); @@ -323,5 +312,4 @@ class Atom10Feed extends XMLStringer array_push($this->links, $attrs); } - }