Skip to content

Commit

Permalink
replace remaining $_GET/$_POST
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Sep 26, 2023
1 parent a850947 commit 9409ca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/others/sticky2.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
$frame = View::addTo($app, ['ui' => 'green segment']);
Button::addTo($frame, ['does not inherit sticky get'])
->on('click', static function () use ($app) {
return new JsToast('$_GET = ' . $app->encodeJson($_GET));
return new JsToast('$_GET = ' . $app->encodeJson($app->getRequest()->getQueryParams()));
});

Header::addTo($app, ['Use of View::url()']);
Expand Down
2 changes: 1 addition & 1 deletion src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ public function controlFactory(Field $field, $controlSeed = []): Control
*/
protected function loadPost(): void
{
$postRawData = $_POST;
$postRawData = $this->getApp()->getRequest()->getParsedBody();
$this->hook(self::HOOK_LOAD_POST, [&$postRawData]);

$errors = [];
Expand Down

0 comments on commit 9409ca6

Please sign in to comment.