Don't display download count if can't determine downloads
parent
6a20cb2e3d
commit
18353cf28b
Binary file not shown.
|
@ -132,9 +132,9 @@ if ( $template['Date'] && $template['Plugin'] ) {
|
||||||
}
|
}
|
||||||
$templateDescription .= $template['MinVer'] ? "<tr><td nowrap>$color<b>Minimum OS:</strong></td><td>{$color}unRaid v".$template['MinVer']."</td></tr>" : "";
|
$templateDescription .= $template['MinVer'] ? "<tr><td nowrap>$color<b>Minimum OS:</strong></td><td>{$color}unRaid v".$template['MinVer']."</td></tr>" : "";
|
||||||
$templateDescription .= $template['MaxVer'] ? "<tr><td nowrap>$color<strong>Max OS:</strong></td><td>{$color}unRaid v".$template['MaxVer']."</td></tr>" : "";
|
$templateDescription .= $template['MaxVer'] ? "<tr><td nowrap>$color<strong>Max OS:</strong></td><td>{$color}unRaid v".$template['MaxVer']."</td></tr>" : "";
|
||||||
$templateDescription .= "<tr><td>$color<strong>Downloads:</strong></td><td>$color";
|
if ($template['downloads']) {
|
||||||
$templateDescription .= $template['downloads'] ? $template['downloads'] : "Could Not Determine";
|
$templateDescription .= "<tr><td>$color<strong>Downloads:</strong></td><td>$color{$template['downloads']}</td></tr>";
|
||||||
$templateDescription .= "</td></tr>";
|
}
|
||||||
$templateDescription .= $template['Licence'] ? "<tr><td>$color<strong>Licence:</strong></td><td>$color".$template['Licence']."</td></tr>" : "";
|
$templateDescription .= $template['Licence'] ? "<tr><td>$color<strong>Licence:</strong></td><td>$color".$template['Licence']."</td></tr>" : "";
|
||||||
|
|
||||||
$templateDescription .= "</table></td></tr></table>";
|
$templateDescription .= "</table></td></tr></table>";
|
||||||
|
@ -205,7 +205,7 @@ if ($template['Plugin']) {
|
||||||
$duplicated .= $testTemplate['Author']." - ".$testTemplate['Name'];
|
$duplicated .= $testTemplate['Author']." - ".$testTemplate['Name'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$templateDescription .= "<br>This plugin has a duplicated name from another plugin $duplicated. This will impact your ability to install both plugins simulateously<br>";
|
$templateDescription .= "<br>This plugin has a duplicated name from another plugin $duplicated. This will impact your ability to install both plugins simultaneously<br>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( $template['Changes'] ) {
|
if ( $template['Changes'] ) {
|
||||||
|
|
Loading…
Reference in New Issue