summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/Registry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Registry.cpp b/src/core/Registry.cpp
index 044668c..4aad7db 100644
--- a/src/core/Registry.cpp
+++ b/src/core/Registry.cpp
@@ -100,13 +100,13 @@ std::string Registry::getMimetypeForExtension(
std::string Registry::getMimetypeForFilename(const std::string &filename) const
{
// Fetch the file extension
- std::string ext = Utils::extractFileExtension(path);
+ std::string ext = Utils::extractFileExtension(filename);
if (ext.empty()) {
return std::string{};
}
// Fetch the mimetype for the extension
- return ctx.registry.getMimetypeForExtension(ext);
+ return getMimetypeForExtension(ext);
}
void Registry::registerResourceLocator(ResourceLocator *locator)