Merge pull request #1612 from zackspear/fix/6-13-install-key-and-pro-update-os

6.13 – fix: pro key check for update via dropdown & Install Key class self instantiate with GET request
This commit is contained in:
tom mortensen
2024-02-08 15:47:29 -08:00
committed by GitHub
3 changed files with 10 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
"css": [
"_nuxt/unraid-components.client-fad7c220.css"
],
"file": "_nuxt/unraid-components.client-437ee6ff.js",
"file": "_nuxt/unraid-components.client-71918f80.js",
"isEntry": true,
"src": ".nuxt/nuxt-custom-elements/entries/unraid-components.client.mjs"
}

View File

@@ -73,3 +73,11 @@ class KeyInstaller
}
}
}
$isGetRequest = !empty($_SERVER) && isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'GET';
$getHasUrlParam = $_GET !== null && !empty($_GET) && isset($_GET['url']);
if ($isGetRequest && $getHasUrlParam) {
$keyInstaller = new KeyInstaller();
$keyInstaller->installKey();
}