Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make author method grab email if available

  • Loading branch information...
commit 6d676643dca53e4a3ac2611c2af528dcce1ded02 1 parent 349432a
@meldra meldra authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 XML/Feed/Parser/Atom.php
View
6 XML/Feed/Parser/Atom.php
@@ -193,6 +193,12 @@ protected function getPerson($method, $arguments)
if ($param->length == 0) {
return false;
}
+
+ $email = $section->item($offset)->getElementsByTagName('email');
+ if ($email->length > 0 && $parameter == 'name') {
+ return $param->item(0)->nodeValue . ' (' . $email->item(0)->nodeValue . ')';
+ }
+
return $this->sanitizer->sanitize($param->item(0)->nodeValue);
}
Please sign in to comment.
Something went wrong with that request. Please try again.