Revert "display the raw type string...

...if we don't know the type and it's not empty"
This commit is contained in:
Gunter Labes 2009-05-24 09:55:11 +00:00
parent e3614a6375
commit a1f5eab12d

View file

@ -937,11 +937,9 @@ namespace {
const std::string& downloads = c["downloads"].str();
const std::string& size = c["size"];
const std::string& sizef = format_file_size(size);
std::string type_str = c["type"];
utils::strip(type_str);
const std::string& type_str = c["type"];
const ADDON_TYPE type = get_addon_type(type_str);
const std::string& type_label_str = (type == ADDON_UNKNOWN && !type_str.empty())
? type_str : get_translatable_addon_type(type);
const std::string& type_label_str = get_translatable_addon_type(type);
addons.push_back(name);
versions.push_back(c["version"]);