Commit 4ea714fb authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed: child_pages macro fails on wiki page history (#4152).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3006 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6994a812
...@@ -95,7 +95,7 @@ module Redmine ...@@ -95,7 +95,7 @@ module Redmine
page = nil page = nil
if args.size > 0 if args.size > 0
page = Wiki.find_page(args.first.to_s, :project => @project) page = Wiki.find_page(args.first.to_s, :project => @project)
elsif obj.is_a?(WikiContent) elsif obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version)
page = obj.page page = obj.page
else else
raise 'With no argument, this macro can be called from wiki pages only.' raise 'With no argument, this macro can be called from wiki pages only.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment