Skip to content

Commit

Permalink
Support settng the author role.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 11, 2017
1 parent 58fb6dc commit 2900a27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Horde/Pear/Package/Xml.php
Expand Up @@ -566,11 +566,12 @@ public function setState($rel_state = null, $api_state = null)
* @param string $user A user name.
* @param string $email An email address.
* @param boolean $active Still active?
* @param string $role An author role.
*/
public function addAuthor($name, $user, $email, $active)
public function addAuthor($name, $user, $email, $active, $role)
{
$date = $this->findNode('/p:package/p:date');
$lead = $this->_xml->createElementNS(self::XMLNAMESPACE, 'lead');
$lead = $this->_xml->createElementNS(self::XMLNAMESPACE, $role);
$this->_appendChild($lead, 'name', $name, "\n ");
$this->_appendChild($lead, 'user', $user, "\n ");
$this->_appendChild($lead, 'email', $email, "\n ");
Expand Down

0 comments on commit 2900a27

Please sign in to comment.