diff options
author | Simon Rettberg | 2020-01-14 17:04:03 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-01-14 17:04:03 +0100 |
commit | 60bded48aa265879cb518f2d6d8821d5301f3179 (patch) | |
tree | 444f0e52510087c4e5dd9b8054ff6619e002928e /modules-available/minilinux/page.inc.php | |
parent | [permissionmanager] Update translations (diff) | |
download | slx-admin-60bded48aa265879cb518f2d6d8821d5301f3179.tar.gz slx-admin-60bded48aa265879cb518f2d6d8821d5301f3179.tar.xz slx-admin-60bded48aa265879cb518f2d6d8821d5301f3179.zip |
[minilinux] Remove duplicate DL button; hide it for orphaned versions
Diffstat (limited to 'modules-available/minilinux/page.inc.php')
-rw-r--r-- | modules-available/minilinux/page.inc.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/minilinux/page.inc.php b/modules-available/minilinux/page.inc.php index 575177a8..0ad6cefc 100644 --- a/modules-available/minilinux/page.inc.php +++ b/modules-available/minilinux/page.inc.php @@ -88,7 +88,7 @@ class Page_MiniLinux extends Page $eff = Property::get(MiniLinux::PROPERTY_DEFAULT_BOOT_EFFECTIVE); foreach ($versions as &$version) { $version['dateline_s'] = Util::prettyTime($version['dateline']); - $version['orphan'] = ($version['orphan'] > 2); + $version['orphan'] = ($version['orphan'] > 0 && !$version['installed']) || ($version['orphan'] > 1); $version['downloading'] = $version['taskid'] && Taskmanager::isRunning(Taskmanager::status($version['taskid'])); if ($version['installed'] && $version['versionid'] !== $def) { $version['showsetdefault'] = true; @@ -155,7 +155,6 @@ class Page_MiniLinux extends Page array_multisort($sort, SORT_ASC, $data['files']); if (!$valid) { $data['verify_button'] = false; - $data['download_button'] = !$data['dltask']; if ($ver['installed']) { MiniLinux::setInstalledState($versionid, false); } |