|
@ -349,7 +349,7 @@ module.exports = { |
|
|
new stream.Transform({ |
|
|
new stream.Transform({ |
|
|
objectMode: true, |
|
|
objectMode: true, |
|
|
transform: async (page, enc, cb) => { |
|
|
transform: async (page, enc, cb) => { |
|
|
let fileName = `${page.path}.${page.getFileExtension()}` |
|
|
|
|
|
|
|
|
let fileName = `${page.path}.${pageHelper.getFileExtension(page.contentType)}` |
|
|
if (WIKI.config.lang.namespacing && WIKI.config.lang.code !== page.localeCode) { |
|
|
if (WIKI.config.lang.namespacing && WIKI.config.lang.code !== page.localeCode) { |
|
|
fileName = `${page.localeCode}/${fileName}` |
|
|
fileName = `${page.localeCode}/${fileName}` |
|
|
} |
|
|
} |
|
|