|
|
@ -162,9 +162,7 @@ void introduceTaskbar(string& content, const string& humanReadableBookId)
|
|
|
|
content = appendToFirstOccurence(
|
|
|
|
content = appendToFirstOccurence(
|
|
|
|
content,
|
|
|
|
content,
|
|
|
|
"<head>",
|
|
|
|
"<head>",
|
|
|
|
replaceRegex(
|
|
|
|
RESOURCE::include_html_part + (noLibraryButtonFlag
|
|
|
|
RESOURCE::include_html_part, humanReadableBookId, "__CONTENT__")
|
|
|
|
|
|
|
|
+ (noLibraryButtonFlag
|
|
|
|
|
|
|
|
? "<style>#kiwix_serve_taskbar_library_button { display: none }</style>"
|
|
|
|
? "<style>#kiwix_serve_taskbar_library_button { display: none }</style>"
|
|
|
|
: "")
|
|
|
|
: "")
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -183,6 +181,7 @@ void introduceTaskbar(string& content, const string& humanReadableBookId)
|
|
|
|
"__CONTENT__"));
|
|
|
|
"__CONTENT__"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
content = replaceRegex(content, rootLocation, "__ROOT_LOCATION__");
|
|
|
|
content = replaceRegex(content, rootLocation, "__ROOT_LOCATION__");
|
|
|
|
|
|
|
|
content = replaceRegex(content, replaceRegex(humanReadableBookId, "%26", "&"), "__CONTENT_ESCAPED__");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pthread_mutex_unlock(®exLock);
|
|
|
|
pthread_mutex_unlock(®exLock);
|
|
|
|
}
|
|
|
|
}
|
|
|
|