- corretto footer catalogo
- corretti il path delle immagini (quando hanno lo spazio nel nomefile). - aggiunto colore di sfondo per il testo descrittivo, in trasparenza
This commit is contained in:
@@ -456,7 +456,6 @@ module.exports = {
|
||||
MYAPPS: [],
|
||||
INITDB_FIRSTIME: true,
|
||||
ACAPO: '\n',
|
||||
|
||||
|
||||
ENABLE_CRONTAB: 'CRONTAB',
|
||||
UPDATE_GRADUATORIA: 'UPDATE_GRAD',
|
||||
@@ -560,7 +559,6 @@ module.exports = {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
gettranslate: function (text, lang) {
|
||||
try {
|
||||
@@ -590,7 +588,7 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
|
||||
getres__: function(text, res) {
|
||||
getres__: function (text, res) {
|
||||
let lang = this.getlangbyres(res);
|
||||
try {
|
||||
return textlang[lang][text];
|
||||
@@ -4632,18 +4630,18 @@ module.exports = {
|
||||
});
|
||||
});
|
||||
},
|
||||
execScriptNoOutput: async function (script) {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
execScriptNoOutput: function (script) {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.log('execScriptNoOutput:', script);
|
||||
exec(script, async (error, stdout, stderr) => {
|
||||
// Aggiunto async qui
|
||||
exec(script, (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
console.error(`error: ${error}`);
|
||||
console.error(`Exec error: ${error.message}`);
|
||||
return reject(error);
|
||||
}
|
||||
if (stderr) {
|
||||
console.error(`stderr: ${stderr}`);
|
||||
console.warn(`Stderr (non bloccante): ${stderr}`);
|
||||
}
|
||||
resolve(!error && !stderr);
|
||||
resolve(true);
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -5908,7 +5906,6 @@ module.exports = {
|
||||
dirmain = server_constants.DIR_PUBLIC_LOCALE;
|
||||
}
|
||||
|
||||
|
||||
/*if (true) {
|
||||
const prova = await this.isFileExistsAsync('prova');
|
||||
console.log('PROVA:', prova);
|
||||
@@ -5977,6 +5974,7 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let fileesistente = false;
|
||||
if (productInfo.imagefile) {
|
||||
// controlla se esiste il file
|
||||
@@ -6118,5 +6116,5 @@ module.exports = {
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user