mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
LibreOffice: rename variables (conversion is generic and not PDF-specific)
This commit is contained in:
parent
73d09f1c6c
commit
4b8a0ff4ac
1 changed files with 3 additions and 3 deletions
|
@ -98,9 +98,9 @@ function doConvertTask(task, callback) {
|
||||||
// Move the converted file to the correct place
|
// Move the converted file to the correct place
|
||||||
function(callback) {
|
function(callback) {
|
||||||
var filename = path.basename(task.srcFile);
|
var filename = path.basename(task.srcFile);
|
||||||
var pdfFilename = filename.substr(0, filename.lastIndexOf('.')) + '.' + task.type;
|
var sourceFilename = filename.substr(0, filename.lastIndexOf('.')) + '.' + task.type;
|
||||||
var pdfPath = path.join(tmpDir, pdfFilename);
|
var sourcePath = path.join(tmpDir, sourceFilename);
|
||||||
fs.rename(pdfPath, task.destFile, callback);
|
fs.rename(sourcePath, task.destFile, callback);
|
||||||
}
|
}
|
||||||
], function(err) {
|
], function(err) {
|
||||||
// Invoke the callback for the local queue
|
// Invoke the callback for the local queue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue