v8: Add package contributors (#4385)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
a8f4cf73d8
commit
280a6d79b4
@@ -573,12 +573,25 @@ namespace Umbraco.Core.Packaging
|
||||
package.Add(requirements);
|
||||
info.Add(package);
|
||||
|
||||
//Author
|
||||
// Author
|
||||
var author = new XElement("author", "");
|
||||
author.Add(new XElement("name", definition.Author));
|
||||
author.Add(new XElement("website", definition.AuthorUrl));
|
||||
info.Add(author);
|
||||
|
||||
// Contributors
|
||||
var contributors = new XElement("contributors", "");
|
||||
|
||||
if (definition.Contributors != null && definition.Contributors.Any())
|
||||
{
|
||||
foreach (var contributor in definition.Contributors)
|
||||
{
|
||||
contributors.Add(new XElement("contributor", contributor));
|
||||
}
|
||||
}
|
||||
|
||||
info.Add(contributors);
|
||||
|
||||
info.Add(new XElement("readme", new XCData(definition.Readme)));
|
||||
|
||||
return info;
|
||||
@@ -608,10 +621,5 @@ namespace Umbraco.Core.Packaging
|
||||
var packagesXml = XDocument.Load(packagesFile);
|
||||
return packagesXml;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user