function back() { UserDataService::removeLastRoom(); $userData = UserDataService::getUserData(); if ($userData->hotelId > 0) { $hotel = HotelService::getHotel($userData->hotelId); $link = JHotelUtil::getHotelLink($hotel); } else { $link = JRoute::_('index.php?option=com_jhotelreservation&task=excursionslisting.searchExcursions', false); UserDataService::initializeExcursions(); } $this->setRedirect($link); }
function back() { UserDataService::removeLastRoom(); $userData = UserDataService::getUserData(); $hotel = HotelService::getHotel($userData->hotelId); $link = JHotelUtil::getHotelLink($hotel); $this->setRedirect($link); }