addon/client: Prettify add-on ids for status display...

...when .title is missing in the .pbl
This commit is contained in:
Ignacio R. Morelle 2012-02-25 02:41:59 +00:00
parent 86eb697cd9
commit 21f5c99e55

View File

@ -109,8 +109,7 @@ bool addons_client::upload_addon(const std::string& id, std::string& response_me
utils::string_map i18n_symbols;
i18n_symbols["addon_title"] = cfg["title"];
if(i18n_symbols["addon_title"].empty()) {
// TODO: prettify if .title is missing in the .pbl!
i18n_symbols["addon_title"] = id;
i18n_symbols["addon_title"] = make_addon_title(id);
}
std::string passphrase = cfg["passphrase"];
@ -161,8 +160,7 @@ bool addons_client::delete_remote_addon(const std::string& id, std::string& resp
utils::string_map i18n_symbols;
i18n_symbols["addon_title"] = cfg["title"];
if(i18n_symbols["addon_title"].empty()) {
// TODO: prettify if .title is missing in the .pbl!
i18n_symbols["addon_title"] = id;
i18n_symbols["addon_title"] = make_addon_title(id);
}
config request_buf, response_buf;