fixes
This commit is contained in:
@@ -609,7 +609,7 @@ class Post < ActiveRecord::Base
|
|||||||
else
|
else
|
||||||
count = get_count_from_cache(tags)
|
count = get_count_from_cache(tags)
|
||||||
|
|
||||||
if count.nil? || count == 0
|
if count.to_i == 0
|
||||||
count = fast_count_search(tags)
|
count = fast_count_search(tags)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<%= link_to topic.title, forum_topic_path(topic) %>
|
<%= link_to topic.title, forum_topic_path(topic) %>
|
||||||
|
|
||||||
<% if topic.response_count > Danbooru.config.posts_per_page %>
|
<% if topic.response_count > Danbooru.config.posts_per_page %>
|
||||||
<%= link_to "last", forum_topic_path(topic, :page => topic.last_page), :class => "last-page" %>
|
<%= link_to "pg #{topic.last_page}", forum_topic_path(topic, :page => topic.last_page), :class => "last-page" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if topic.is_locked? %>
|
<% if topic.is_locked? %>
|
||||||
|
|||||||
Reference in New Issue
Block a user