X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fatom10feed.php;h=2bba6d0a91474bf5ac7271c3cc35aa83b2574e2c;hb=b22acbb42e2cefa4c3d94f192b735519b1182f07;hp=d5faafa1b3756d96ab20bc233a6bb47e2d182295;hpb=31b29fde50e9664e1b70064c043879ce87553883;p=quix0rs-gnu-social.git diff --git a/lib/atom10feed.php b/lib/atom10feed.php index d5faafa1b3..2bba6d0a91 100644 --- a/lib/atom10feed.php +++ b/lib/atom10feed.php @@ -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 == '') { @@ -181,10 +167,10 @@ class Atom10Feed extends XMLStringer $this->element( 'generator', array( - 'uri' => 'http://status.net', - 'version' => STATUSNET_VERSION + 'uri' => 'https://gnu.io/social', + 'version' => GNUSOCIAL_VERSION ), - 'StatusNet' + 'GNU social' ); $this->element('id', null, $this->id);