X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fatom10feed.php;h=8d4b66d8b89211d977c9b36d89c11edbb1193f33;hb=1d29ba83150bdd7a23e497ca9a743ac2b6158b6f;hp=3ae9dc81be077c3b387202ffdb49800cc565245e;hpb=b9177f5e2e3f9697ef1d2863c827d03154ff828e;p=quix0rs-gnu-social.git diff --git a/lib/atom10feed.php b/lib/atom10feed.php index 3ae9dc81be..8d4b66d8b8 100644 --- a/lib/atom10feed.php +++ b/lib/atom10feed.php @@ -108,8 +108,9 @@ 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( - _('author element must contain a name element.') + _('Author element must contain a name element.') ); } @@ -146,15 +147,17 @@ class Atom10Feed extends XMLStringer } /** - * Add a activity feed subject via raw XML string + * Deprecated ; ignored * * @param string $xmlSubject An XML string representation of the subject * * @return void */ + function setActivitySubject($xmlSubject) { - $this->subject = $xmlSubject; + // TRANS: Server exception thrown when using the method setActivitySubject() in the class Atom10Feed. + throw new ServerException(_('Do not use this method!')); } function getNamespaces()