Skip to content

Commit 2c62d07

Browse files
committed
refactor: update ReplaceKey check method usage for Tools Downgrade, Update, Registration
- Changed the `check()` method call in Registration.page to use the `force` parameter. - Moved the `require_once` for reboot-details.php in Downgrade.page and Update.page to ensure it's included after the ReplaceKey check.
1 parent 3a948b0 commit 2c62d07

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/Registration.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Tag="pencil"
1616
*/
1717
require_once "$docroot/plugins/dynamix/include/ReplaceKey.php";
1818
$replaceKey = new ReplaceKey();
19-
$replaceKey->check();
19+
$replaceKey->check(true);
2020
?>
2121
<unraid-i18n-host>
2222
<unraid-registration></unraid-registration>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ Tag="upload"
1717
* @note icon-update is rotated via CSS in myservers1.php
1818
*/
1919
require_once "$docroot/plugins/dynamix/include/ReplaceKey.php";
20-
require_once "$docroot/plugins/dynamix.my.servers/include/reboot-details.php";
21-
2220
$replaceKey = new ReplaceKey();
2321
$replaceKey->check();
2422

23+
require_once "$docroot/plugins/dynamix.my.servers/include/reboot-details.php";
2524
$rebootDetails = new RebootDetails();
2625
$rebootDetails->setPrevious();
2726

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ Tag="upload"
1313
* The above copyright notice and this permission notice shall be included in
1414
* all copies or substantial portions of the Software.
1515
*/
16-
require_once "$docroot/plugins/dynamix.my.servers/include/reboot-details.php";
1716
require_once "$docroot/plugins/dynamix/include/ReplaceKey.php";
18-
$rebootDetails = new RebootDetails();
1917
$replaceKey = new ReplaceKey();
2018
$replaceKey->check();
19+
20+
require_once "$docroot/plugins/dynamix.my.servers/include/reboot-details.php";
21+
$rebootDetails = new RebootDetails();
2122
?>
2223
<script>
2324
function cleanUpFlashBackup(zip) {

0 commit comments

Comments
 (0)