X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fatom10feed.php;h=77e05b8ca56f5d4ee4d461fb1bc15c0b46c265d5;hb=931753229328d0ebdf80b76b898a736c06dc70a4;hp=8d4b66d8b89211d977c9b36d89c11edbb1193f33;hpb=b7d07466943a73e1c009467c8daa6e499810080f;p=quix0rs-gnu-social.git diff --git a/lib/atom10feed.php b/lib/atom10feed.php index 8d4b66d8b8..77e05b8ca5 100644 --- a/lib/atom10feed.php +++ b/lib/atom10feed.php @@ -108,8 +108,8 @@ class Atom10Feed extends XMLStringer if (!empty($name)) { $xs->element('name', null, $name); } else { - // TRANS: Atom feed exception thrown when an author element does not contain a name element. throw new Atom10FeedException( + // TRANS: Atom feed exception thrown when an author element does not contain a name element. _('Author element must contain a name element.') ); } @@ -146,20 +146,6 @@ class Atom10Feed extends XMLStringer } } - /** - * Deprecated ; ignored - * - * @param string $xmlSubject An XML string representation of the subject - * - * @return void - */ - - function setActivitySubject($xmlSubject) - { - // TRANS: Server exception thrown when using the method setActivitySubject() in the class Atom10Feed. - throw new ServerException(_('Do not use this method!')); - } - function getNamespaces() { return $this->namespaces; @@ -167,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 == '') { @@ -182,7 +168,7 @@ class Atom10Feed extends XMLStringer $this->element( 'generator', array( 'uri' => 'http://status.net', - 'version' => STATUSNET_VERSION + 'version' => GNUSOCIAL_VERSION ), 'StatusNet' );