File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1038,8 +1038,13 @@ function search(button) {
10381038 </div>
10391039 <div id="update-search" class="mt-auto"> ' ;
10401040if (extension_loaded ('curl ' )) {
1041+ // Recupera la data dell'ultimo upload nel modulo aggiornamenti
1042+ $ last_upload_query = 'SELECT created_at FROM zz_operations WHERE id_module = ? AND op = ? ORDER BY created_at DESC LIMIT 1 ' ;
1043+ $ last_upload = $ database ->fetchOne ($ last_upload_query , [$ id_module , 'upload ' ]);
1044+ $ last_upload_date = $ last_upload ? date ('d/m/Y H:i ' , strtotime ($ last_upload ['created_at ' ])) : tr ('Mai ' );
1045+
10411046 echo ' <div class="mb-2">
1042- <small class="text-muted"> ' .tr ('Controlla automaticamente su GitHub ' ) .'</small>
1047+ <small class="text-muted"> ' .tr ('Controlla automaticamente su GitHub. Data ultimo aggiornamento: ' ). ' ' . $ last_upload_date .'</small>
10431048 </div>
10441049 <button type="button" class="btn btn-info btn-block" onclick="search(this)">
10451050 <i class="fa fa-search mr-2"></i> ' .tr ('Verifica Aggiornamenti ' ).'
You can’t perform that action at this time.
0 commit comments