mirror of https://github.com/kiwix/libkiwix.git
Change the default NameMappe to use a `HumanReadableNameMapper`
This commit is contained in:
parent
37ccfb54ed
commit
7d83127d58
|
@ -32,7 +32,7 @@ namespace kiwix {
|
|||
|
||||
Server::Configuration::Configuration(std::shared_ptr<Library> library, std::shared_ptr<NameMapper> nameMapper) :
|
||||
mp_library(library),
|
||||
mp_nameMapper(nameMapper ? nameMapper : std::make_shared<IdNameMapper>())
|
||||
mp_nameMapper(nameMapper ? nameMapper : std::make_shared<HumanReadableNameMapper>(*library, true))
|
||||
{}
|
||||
|
||||
Server::Configuration& Server::Configuration::setRoot(const std::string& root)
|
||||
|
|
Loading…
Reference in New Issue