mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
Added option to select legacy icons
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user