Updated Kiwix::Manager class to accept origID as the last optional parameter, so as not to break existing tools which use Kiwix::Manager

This commit is contained in:
Kiran Mathew Koshy 2013-09-20 02:52:29 +05:30
parent ed53a9fdec
commit b198e56717
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ int main(int argc, char **argv) {
origID=hexUUID(tempArray);
}
//std::cout<<"\nORIGID: "<<origID;
string bookId = libraryManager.addBookFromPathAndGetId(zimPath, zimPathToSave, url,origID, false);
string bookId = libraryManager.addBookFromPathAndGetId(zimPath, zimPathToSave, url, false,origID);
if (!bookId.empty()) {

View File

@ -481,7 +481,7 @@ int main(int argc, char **argv) {
cerr << "The XML library file '" << libraryPath << "' is empty (or has only remote books)." << endl;
}
} else {
if (!libraryManager.addBookFromPath(zimPath, zimPath, "","", false)) {
if (!libraryManager.addBookFromPath(zimPath, zimPath, "", false,"")) {
cerr << "Unable to add the ZIM file '" << zimPath << "' to the internal library." << endl;
exit(1);
} else if (!indexPath.empty()) {