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.')
);
}
}
/**
- * Add a activity feed subject via raw XML string
+ * Deprecated <activity:subject>; 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()
array_push($this->links, $attrs);
}
-
}