Skip to content

Commit

Permalink
[5.2] replace deprecated access of input property
Browse files Browse the repository at this point in the history
  • Loading branch information
heelc29 committed Oct 6, 2024
1 parent 4b41186 commit b67e9c9
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 b67e9c9

Please sign in to comment.