Fix incorrect downloaded file extension (#8928)

* Fix incorrect downloaded file extension

* Update docs
This commit is contained in:
Leilei332
2025-02-14 18:17:00 +00:00
committed by GitHub
parent 2a2d998bef
commit fbe5a2f908
8 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ SaverHandler.prototype.saveWiki = function(options) {
// Call the highest priority saver that supports this method
for(var t=this.savers.length-1; t>=0; t--) {
var saver = this.savers[t];
if(saver.info.capabilities.indexOf(method) !== -1 && saver.save(text,method,callback,{variables: {filename: variables.filename}})) {
if(saver.info.capabilities.indexOf(method) !== -1 && saver.save(text,method,callback,{variables: {filename: variables.filename, type: variables.type}})) {
this.logger.log("Saving wiki with method",method,"through saver",saver.info.name);
return true;
}