Merge pull request #3146 from evazion/fix-reltags-alias
Fix #1608: Show wiki page of alias consequent for Related Tags
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
class RelatedTagQuery
|
||||
attr_reader :query, :category
|
||||
|
||||
def initialize(query, category)
|
||||
@query = query.strip
|
||||
def initialize(query, category = nil)
|
||||
@query = TagAlias.to_aliased(query.strip).join(" ")
|
||||
@category = category
|
||||
end
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ class WikiPage < ActiveRecord::Base
|
||||
else
|
||||
match
|
||||
end
|
||||
end.map {|x| x.mb_chars.downcase.tr(" ", "_").to_s}
|
||||
end.map {|x| x.mb_chars.downcase.tr(" ", "_").to_s}.uniq
|
||||
end
|
||||
|
||||
def visible?
|
||||
|
||||
Reference in New Issue
Block a user