addon/info: Write .type as a string id...

...instead of a converted enum member in write() and write_minimal()
methods
This commit is contained in:
Ignacio R. Morelle 2012-04-04 02:17:09 +00:00
parent 1bee8c9033
commit e8c4a79dc9

View file

@ -95,7 +95,7 @@ void addon_info::write(config& cfg) const
cfg["size"] = this->size;
cfg["downloads"] = this->downloads;
cfg["uploads"] = this->uploads;
cfg["type"] = this->type;
cfg["type"] = get_addon_type_string(this->type);
foreach(const std::string& locale_id, this->locales) {
cfg.add_child("translation")["language"] = locale_id;
@ -108,7 +108,7 @@ void addon_info::write_minimal(config& cfg) const
{
cfg["version"] = this->version.str();
cfg["uploads"] = this->uploads;
cfg["type"] = this->type;
cfg["type"] = get_addon_type_string(this->type);
}
std::string addon_info::display_title() const