mirror of
https://github.com/Metastem/wikiless
synced 2024-12-06 19:16:58 +01:00
fix custom logos not loading on fr and ko sites (ref #70)
This commit is contained in:
+3
-4
@@ -453,10 +453,9 @@ module.exports = function(redis) {
|
||||
return `${static_path}/wikiless-favicon.ico`
|
||||
}
|
||||
|
||||
this.customLogos = (req) => {
|
||||
const lang = getLang(req)
|
||||
if(lang === 'fr') {
|
||||
return path.join(__dirname, '..', 'static', 'fr', path.basename(req.url))
|
||||
this.customLogos = (url, lang) => {
|
||||
if(validLang(lang)) {
|
||||
return path.join(__dirname, '..', 'static', lang, path.basename(url))
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user