Added option to select legacy icons

This commit is contained in:
bergware
2019-02-13 09:59:23 +01:00
parent 180cb18b75
commit f0f888a42e
13 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ function resize(bind) {
}
<?endif;?>
function loadlist(id) {
$.get('/plugins/dynamix.plugin.manager/include/ShowPlugins.php',{audit:id,check:<?=$check?>},function(d) {
$.get('/plugins/dynamix.plugin.manager/include/ShowPlugins.php',{audit:id,check:<?=$check?>,legacy:<?=$display['legacy']?>},function(d) {
var data = d.split(/\0/);
var list = $('#plugin_list');
if (id) {
@@ -19,6 +19,7 @@ $system = $_GET['system'] ?? false;
$branch = $_GET['branch'] ?? false;
$audit = $_GET['audit'] ?? false;
$check = $_GET['check'] ?? false;
$legacy = $_GET['legacy'] ?? false;
$empty = true;
$updates = 0;
$builtin = ['unRAIDServer'];
@@ -64,7 +65,7 @@ foreach (glob($plugins,GLOB_NOSORT) as $plugin_link) {
}
//link/icon
$launch = plugin('launch',$plugin_file);
if ($icon = plugin('icon',$plugin_file)) {
if (!$legacy && $icon = plugin('icon',$plugin_file)) {
if (substr($icon,-4)=='.png') {
if (file_exists("plugins/$name/images/$icon")) {
$icon = "plugins/$name/images/$icon";