app/models/revision.rb in Pimki-1.6.092 vs app/models/revision.rb in Pimki-1.7.092
- old
+ new
@@ -43,9 +43,11 @@
# Returns an array of all the WikiWords present in the content of this revision.
def wiki_words
unless @wiki_words_cache
wiki_chunks = display_content.find_chunks(WikiChunk::WikiLink)
+ # BlikiLinks are used to link outside the wiki, so are not WikiLinks.
+ wiki_chunks.reject! { |chunk| chunk.kind_of? WikiChunk::BlikiLink }
@wiki_words_cache = wiki_chunks.map { |c| ( c.escaped_text ? nil : c.page_name ) }.compact.uniq
end
@wiki_words_cache
end