From c766a1cb121ce3e159d29cc4ece19df053ce0de1 Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 20 Feb 2013 13:43:06 -0500 Subject: [PATCH] typo fix --- app/helpers/application_helper.rb | 2 +- app/logical/post_query_builder.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6f6920889..02a663d81 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -111,7 +111,7 @@ module ApplicationHelper protected def nav_link_match(controller, url) 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)/ when "forum_posts" diff --git a/app/logical/post_query_builder.rb b/app/logical/post_query_builder.rb index 52b0abe7b..49d598bed 100644 --- a/app/logical/post_query_builder.rb +++ b/app/logical/post_query_builder.rb @@ -66,7 +66,7 @@ class PostQueryBuilder end 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? tag_query_sql << "!(" + escape_string_for_tsquery(tags[:exclude]).join(" | ") + ")"