From e0cf824188626888efc1d065b979b1fe9bf83e90 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Wed, 27 Jun 2012 10:18:41 +0000 Subject: [PATCH] + was not able to deal with relative path in libraries --- src/server/kiwix-serve.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index 1fac507..d86784a 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -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;