diff --git a/app/code/community/Studioforty9/Recaptcha/Helper/Redirect.php b/app/code/community/Studioforty9/Recaptcha/Helper/Redirect.php index 6acbc17..008179e 100644 --- a/app/code/community/Studioforty9/Recaptcha/Helper/Redirect.php +++ b/app/code/community/Studioforty9/Recaptcha/Helper/Redirect.php @@ -64,9 +64,9 @@ public function getUrl() return $referer; } - if ($this->_session->hasLastUrl()) { - return $this->_session->getLastUrl(); - } + if ($this->getSession()->hasLastUrl()) { + return $this->getSession()->getLastUrl(); + } return $this->getRequestUri(); }