]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/atom10feed.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / lib / atom10feed.php
index a46d49f3509518ff0c7a4a89fa6a403da0f4e59e..2bba6d0a91474bf5ac7271c3cc35aa83b2574e2c 100644 (file)
@@ -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,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);
@@ -323,5 +312,4 @@ class Atom10Feed extends XMLStringer
 
         array_push($this->links, $attrs);
     }
-
 }