diff --git a/config/namespaces.php b/config/namespaces.php index 07cc75097..a9b43d13f 100644 --- a/config/namespaces.php +++ b/config/namespaces.php @@ -2,6 +2,7 @@ return [ 'include' => 'Common', + 'modules/aggiornamenti' => 'Modules\Aggiornamenti', 'modules/anagrafiche' => 'Modules\Anagrafiche', 'modules/articoli' => 'Modules\Articoli', 'modules/ritenute' => 'Modules\Ritenute', diff --git a/include/bottom.php b/include/bottom.php index 19e978ad2..6eb039ec6 100644 --- a/include/bottom.php +++ b/include/bottom.php @@ -63,11 +63,13 @@ if (Auth::check()) { }, success: function(data) { hooks = JSON.parse(data); - + + $("#hooks-header").text(globals.translations.hooksExecuting); + if (hooks.length == 0) { $("#hooks-loading").hide(); $("#hooks-number").text(0); - $("#hooks-header").append(\'\' + globals.translations.hookNone + \'\'); + $("#hooks-header").text(globals.translations.hookNone); } hooks.forEach(function(item, index){ diff --git a/include/top.php b/include/top.php index e492759ce..383a84b0b 100644 --- a/include/top.php +++ b/include/top.php @@ -84,6 +84,7 @@ if (Auth::check()) { 'details' => tr('Dettagli'), 'waiting' => tr('Impossibile procedere'), 'waiting_msg' => tr('Prima di proseguire devi selezionare alcuni elementi!'), + 'hooksExecuting' => tr('Hooks in esecuzione'), 'hookExecuting' => tr('Hook "_NAME_" in esecuzione'), 'hookMultiple' => tr('Hai _NUM_ notifiche'), 'hookSingle' => tr('Hai 1 notifica'), @@ -243,7 +244,7 @@ if (Auth::check()) {