public ForumSearchQueryFactory( ICommonServices services, HttpContextBase httpContext, IForumSearchQueryAliasMapper forumSearchQueryAliasMapper, IGenericAttributeService genericAttributeService, ForumSearchSettings searchSettings, ForumSettings forumSettings) : base(httpContext) { _services = services; _forumSearchQueryAliasMapper = forumSearchQueryAliasMapper; _genericAttributeService = genericAttributeService; _searchSettings = searchSettings; _forumSettings = forumSettings; T = NullLocalizer.Instance; QuerySettings = DbQuerySettings.Default; }
public FacetUrlHelper( ICatalogSearchQueryAliasMapper catalogAliasMapper, IForumSearchQueryAliasMapper forumAliasMapper, IWorkContext workContext, HttpRequestBase httpRequest) { _catalogAliasMapper = catalogAliasMapper; _forumAliasMapper = forumAliasMapper; _workContext = workContext; _httpRequest = httpRequest; _languageId = _workContext.WorkingLanguage.Id; _url = _httpRequest.CurrentExecutionFilePath; //_initialQuery = new QueryString().FillFromString(_httpRequest.QueryString.ToString(), false); _initialQuery = QueryString.CurrentUnvalidated; // Remove page index (i) from query string _initialQuery.Remove("i"); }