Skip to content

Commit 8d56d12

Browse files
authored
feat: downgrade page replace key check (#1263)
Joins Update.page and Registration.page in having Replace Key check due to relation between OS Version & License OS Eligibility <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced an enhanced system validation step during initialization that verifies key functionality before processing reboot details, improving system reliability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent a210f69 commit 8d56d12

File tree

1 file changed

+5
-3
lines changed
  • plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager

1 file changed

+5
-3
lines changed

plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.plugin.manager/Downgrade.page

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ Tag="upload"
1616
/**
1717
* @note icon-update is rotated via CSS in myservers1.php
1818
*/
19-
19+
require_once "$docroot/plugins/dynamix/include/ReplaceKey.php";
2020
require_once "$docroot/plugins/dynamix.my.servers/include/reboot-details.php";
21-
// Create an instance of the RebootDetails class
21+
22+
$replaceKey = new ReplaceKey();
23+
$replaceKey->check();
24+
2225
$rebootDetails = new RebootDetails();
23-
// Get the current reboot details if there are any
2426
$rebootDetails->setPrevious();
2527

2628
$serverNameEscaped = htmlspecialchars(str_replace(' ', '_', strtolower($var['NAME'])));

0 commit comments

Comments
 (0)