+ last imp. in new content mgmt.

This commit is contained in:
kelson42 2011-05-08 19:00:53 +00:00
parent e6ff96ecb4
commit de807c8e78
1 changed files with 4 additions and 2 deletions

View File

@ -86,7 +86,7 @@ namespace kiwix {
pugi::xml_parse_result result = doc.load_file(path.c_str()); pugi::xml_parse_result result = doc.load_file(path.c_str());
if (result) { if (result) {
// this->parseXmlDom(doc, readOnly); this->parseXmlDom(doc, readOnly);
} }
if (!readOnly) { if (!readOnly) {
@ -116,6 +116,8 @@ namespace kiwix {
if (!itr->readOnly) { if (!itr->readOnly) {
pugi::xml_node bookNode = libraryNode.append_child("book"); pugi::xml_node bookNode = libraryNode.append_child("book");
bookNode.append_attribute("id") = itr->id.c_str(); bookNode.append_attribute("id") = itr->id.c_str();
if (itr->path != "")
bookNode.append_attribute("path") = itr->path.c_str(); bookNode.append_attribute("path") = itr->path.c_str();
if (itr->last != "" && itr->last != "undefined") { if (itr->last != "" && itr->last != "undefined") {