mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 13:09:58 -06:00
Remove unused code in plugins.page
This commit is contained in:
@@ -19,8 +19,7 @@ Tabs="true"
|
||||
<?
|
||||
$empty = "<tr><td colspan='6' style='text-align:center;padding-top:12px'><i class='fa fa-spinner fa-spin icon'></i><em>Please wait, retrieving and updating plugin information ...</em></td><tr>";
|
||||
// Remove stale /tmp/plugin/*.plg entries
|
||||
$stale = ($path != $prev);
|
||||
if ($stale) foreach (glob("/tmp/plugins/*.{plg,txt}", GLOB_NOSORT+GLOB_BRACE) as $entry) if (!file_exists("/var/log/plugins/".basename($entry))) @unlink($entry);
|
||||
if ($path != $prev) foreach (glob("/tmp/plugins/*.{plg,txt}", GLOB_NOSORT+GLOB_BRACE) as $entry) if (!file_exists("/var/log/plugins/".basename($entry))) @unlink($entry);
|
||||
?>
|
||||
<link type="text/css" rel="stylesheet" href="/webGui/styles/jquery.filetree.css">
|
||||
<style>
|
||||
@@ -42,7 +41,7 @@ function resize(bind) {
|
||||
}
|
||||
<?endif;?>
|
||||
$(function() {
|
||||
$.get('/plugins/dynamix.plugin.manager/include/ShowPlugins.php',{stale:'<?=$stale?>'},function(data) {
|
||||
$.get('/plugins/dynamix.plugin.manager/include/ShowPlugins.php',{},function(data) {
|
||||
if (data) $('#plugin_list').html(data);
|
||||
<?if ($display['resize']):?>
|
||||
resize();
|
||||
|
||||
Reference in New Issue
Block a user