/** * Reply to a comment * * @return void */ public function replyTask() { // is the user logged in? if (User::isGuest()) { // Get wishlist info $wishlist = new Wishlist(Request::getInt('refid', 0), Request::getVar('cat', '')); // Set page title $this->_list_title = ($wishlist->isPublic() or !$wishlist->isPublic() && $wishlist->get('admin') == 2) ? $wishlist->get('title') : ''; $this->_buildTitle(); // Set the pathway $this->_buildPathway($wishlist); $this->_msg = Lang::txt('COM_WISHLIST_WARNING_LOGIN_TO_ADD_COMMENT'); $this->loginTask(); return; } $this->wishTask(); }