Fix per province caricate a gestionale in minuscolo

This commit is contained in:
Luca 2019-01-03 15:04:46 +01:00
parent 7132543d4c
commit 57f2019384
2 changed files with 7 additions and 2 deletions

View File

@ -77,12 +77,13 @@ class FileManager implements ManagerInterface
</tr>';
foreach ($rs as $r) {
$extension = pathinfo($r['original'])['extension'];
$result .= '
<tr>
<td align="left">
<a href="'.ROOTDIR.'/'.$directory.'/'.$r['filename'].'" target="_blank">
<i class="fa fa-external-link"></i> '.$r['name'].'
</a>
</a> ('.$extension.')'.'
</td>
<td>'.\Translator::timestampToLocale($r['created_at']).'</td>
<td class="text-center">
@ -91,7 +92,6 @@ class FileManager implements ManagerInterface
</a>';
// Anteprime supportate dal browser
$extension = pathinfo($r['original'])['extension'];
$supported_extensions = ['pdf', 'jpg', 'png', 'gif', 'jpeg', 'bmp'];
if (in_array(strtolower($extension), $supported_extensions)) {
$result .= "

5
update/2_4_5.php Normal file
View File

@ -0,0 +1,5 @@
<?php
//Fix per province caricate a gestionale in minuscolo
$dbo->query("UPDATE an_anagrafiche SET provincia=UPPER(provincia)");
?>