adjust Request-class methods to be more flexible

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-12-30 21:43:27 +01:00
parent 983d929460
commit f2485ecd9a
31 changed files with 87 additions and 57 deletions

View File

@@ -39,7 +39,7 @@ use Froxlor\UI\Panel\UI;
use Froxlor\UI\Request;
use Froxlor\UI\Response;
$id = (int)Request::get('id');
$id = (int)Request::any('id');
if ($page == '' || $page == 'overview') {
if ($action == '') {
@@ -263,7 +263,7 @@ if ($page == '' || $page == 'overview') {
}
}
} elseif ($action == 'jqGetPlanValues') {
$planid = (int)Request::get('planid', 0);
$planid = (int)Request::any('planid', 0);
try {
$json_result = HostingPlans::getLocal($userinfo, [
'id' => $planid