Added a “message to admins” that gets shown when server thumbnail is unavailable, explaining how to try and fix it
This commit is contained in:
parent
94bfec5f78
commit
594447e2a5
1 changed files with 3 additions and 2 deletions
|
@ -508,10 +508,11 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
|
|||
while ($rrow=mysqli_fetch_assoc($rres))
|
||||
$buf[]=hspech($rrow['Lang']);
|
||||
($row['Thumb']=='unavailable') ? $thumb=$prepath.'imgs/InstThumbUnavailable.svg' : $thumb=$row['Thumb'];
|
||||
$out.='<a href="https://'.hspech($row['URI']).'" title="'._('Go to instance').'"><div class="iimgc"><img class="iimg" src="'.$thumb.'">';
|
||||
$out.='<div class="iimgc"><a href="https://'.hspech($row['URI']).'" title="'._('Go to instance').'"><img class="iimg" src="'.$thumb.'"></a>';
|
||||
// if (!is_null($row['Priority'])) $out.='<img src="'.$prepath.'imgs/featured-it.svg" class="ifeat">';
|
||||
if (!is_null($row['Priority'])) $out.='<div class="dfeat">'._('Recommended').'</div>';
|
||||
$out.='</div></a>'.N;
|
||||
if ($row['Thumb']=='unavailable') $out.='<div class="unavmsg">'._('It seems like this instance’s server thumbnail’s URL points to a non existent file. This is usually easily fixeable by admins by uploading again the server thumbnail (“Preferences” > “Administration” > “Server settings” > “Branding” > “Server thumbnail”). Note that if you do it, the change won’t be displayed here before the daily automatic update of this instance’s infos occurs.').'</div>';
|
||||
$out.='</div>'.N;
|
||||
$out.='<div class="icol">'.N;
|
||||
$out.='<div><span class="ilab">'._('Name').'</span> <a href="https://'.hspech($row['URI']).'" title="'._('Go to instance').'">'.nully(hspech($row['Title'])).'</a></div>'.N;
|
||||
/*$out.='<div><span class="ilab">'._('Consigliata').'</span> ';
|
||||
|
|
Loading…
Reference in a new issue