Fixed some bugs on version page.

This commit is contained in:
Benjamin Meichsner 2009-08-12 19:00:45 +02:00
parent 9516f349ce
commit 469c2473ca
3 changed files with 4 additions and 4 deletions

View file

@ -9,8 +9,8 @@ module PagesHelper
# end
# end
def wikified_body(page)
WikiCloth.new({:data => page.body+"\n", :link_handler => Wikilink.new, :params => {:referer => page.title}}).to_html
def wikified_body(body, title = nil)
WikiCloth.new({:data => body+"\n", :link_handler => Wikilink.new, :params => {:referer => title}}).to_html
end
def link_to_wikipage(page)