+ was not able to deal with relative path in libraries

This commit is contained in:
kelson42 2012-06-27 10:18:41 +00:00
parent c2cd40d067
commit e0cf824188

View File

@ -454,10 +454,10 @@ int main(int argc, char **argv) {
for ( itr = booksIds.begin(); itr != booksIds.end(); ++itr ) {
libraryManager.getBookById(*itr, currentBook);
string humanReadableId = currentBook.getHumanReadableIdFromPath();
zimPath = currentBook.path;
zimPath = currentBook.pathAbsolute;
if (!zimPath.empty()) {
indexPath = currentBook.indexPath;
indexPath = currentBook.indexPathAbsolute;
/* Instanciate the ZIM file handler */
kiwix::Reader *reader = NULL;