typo fix
This commit is contained in:
@@ -111,7 +111,7 @@ module ApplicationHelper
|
|||||||
protected
|
protected
|
||||||
def nav_link_match(controller, url)
|
def nav_link_match(controller, url)
|
||||||
url =~ case controller
|
url =~ case controller
|
||||||
when "sessions", "users", "maintenance/user/login_reminders", "maintenance/user/password_resets"
|
when "sessions", "users", "maintenance/user/login_reminders", "maintenance/user/password_resets", "admin/users"
|
||||||
/^\/(session|users)/
|
/^\/(session|users)/
|
||||||
|
|
||||||
when "forum_posts"
|
when "forum_posts"
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class PostQueryBuilder
|
|||||||
end
|
end
|
||||||
|
|
||||||
if tags[:exclude].any?
|
if tags[:exclude].any?
|
||||||
raise ::Post::SearchError.new("You cannot search for more than #{CurrentUser.user.tag_query_limit} tags at a time") if tags[:exclude].size > CurrentUse.userr.tag_query_limit
|
raise ::Post::SearchError.new("You cannot search for more than #{CurrentUser.user.tag_query_limit} tags at a time") if tags[:exclude].size > CurrentUser.user.tag_query_limit
|
||||||
raise ::Post::SearchError.new("You cannot search for only excluded tags") unless has_constraints?
|
raise ::Post::SearchError.new("You cannot search for only excluded tags") unless has_constraints?
|
||||||
|
|
||||||
tag_query_sql << "!(" + escape_string_for_tsquery(tags[:exclude]).join(" | ") + ")"
|
tag_query_sql << "!(" + escape_string_for_tsquery(tags[:exclude]).join(" | ") + ")"
|
||||||
|
|||||||
Reference in New Issue
Block a user