From 35a51c0351ab86d27746f90f4a178b1d2a320b8d Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 8 Mar 2013 15:23:39 -0500 Subject: [PATCH] fixes #790 --- app/logical/post_sets/post.rb | 2 +- app/views/posts/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/logical/post_sets/post.rb b/app/logical/post_sets/post.rb index 68b291a56..ef97af9ed 100644 --- a/app/logical/post_sets/post.rb +++ b/app/logical/post_sets/post.rb @@ -18,7 +18,7 @@ module PostSets end def has_wiki? - tag_array.any? && ::WikiPage.titled(tag_string).exists? + tag_array.size == 1 && ::WikiPage.titled(tag_string).exists? end def wiki_page diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index 8c74db2ae..6f4bbfea1 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -20,7 +20,7 @@
  • Posts
  • - <% if params[:tags].present? %> + <% if @post_set.has_wiki? %>
  • Wiki
  • <% end %>