Move selectionVars into if statement

This commit is contained in:
Hasso Tepper 2015-08-17 15:28:55 +03:00
parent 69c550ce51
commit 72799ffba2

View file

@ -1945,12 +1945,11 @@
var directoryInfo = n('files', '%n folder', '%n folders', summary.totalDirs);
var fileInfo = n('files', '%n file', '%n files', summary.totalFiles);
var selectionVars = {
dirs: directoryInfo,
files: fileInfo
};
if (summary.totalDirs > 0 && summary.totalFiles > 0) {
var selectionVars = {
dirs: directoryInfo,
files: fileInfo
};
var selection = t('files', '{dirs} and {files}', selectionVars);
} else if (summary.totalDirs > 0) {
var selection = directoryInfo;