Update x img piccole
This commit is contained in:
@@ -315,12 +315,18 @@ namespace MoonProTablet.WebUserControls
|
||||
{
|
||||
url = "Steamware.png";
|
||||
}
|
||||
// verifico esistenza macchina...
|
||||
answ = $"./images/macchine/{url}";
|
||||
// verifico esistenza macchina SMALL...
|
||||
answ = $"./images/macchine/small/{url}";
|
||||
string fullPath = Server.MapPath(answ);
|
||||
if (!File.Exists(fullPath))
|
||||
{
|
||||
// metto default Steamware
|
||||
// se non ci fosse cerco immagine fullsize
|
||||
answ = $"./images/macchine/{url}";
|
||||
fullPath = Server.MapPath(answ);
|
||||
}
|
||||
// altrimenti metto default Steamware
|
||||
if (!File.Exists(fullPath))
|
||||
{
|
||||
answ = "./images/macchine/Steamware.png";
|
||||
}
|
||||
return answ;
|
||||
|
||||
Reference in New Issue
Block a user