Skip to content

Commit

Permalink
[5.2] replace deprecated access of input property (#44195)
Browse files Browse the repository at this point in the history
  • Loading branch information
heelc29 authored Oct 7, 2024
1 parent 0218107 commit 8f6292d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public function fetchUserState()
{
$user = $this->app->getIdentity();

$tourId = $this->app->input->getInt('tid', 0);
$stepNumber = $this->app->input->getInt('sid', 0);
$context = $this->app->input->getString('context', '');
$tourId = $this->app->getInput()->getInt('tid', 0);
$stepNumber = $this->app->getInput()->getInt('sid', 0);
$context = $this->app->getInput()->getString('context', '');

if ($user == null || $user->id <= 0) {
echo new JsonResponse(['success' => false, 'tourId' => $tourId], Text::_('COM_GUIDEDTOURS_USERSTATE_CONNECTEDONLY'), true);
Expand Down

0 comments on commit 8f6292d

Please sign in to comment.