@@ -95,7 +95,7 module Redmine | |||||
95 | page = nil |
|
95 | page = nil | |
96 | if args.size > 0 |
|
96 | if args.size > 0 | |
97 | page = Wiki.find_page(args.first.to_s, :project => @project) |
|
97 | page = Wiki.find_page(args.first.to_s, :project => @project) | |
98 | elsif obj.is_a?(WikiContent) |
|
98 | elsif obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version) | |
99 | page = obj.page |
|
99 | page = obj.page | |
100 | else |
|
100 | else | |
101 | raise 'With no argument, this macro can be called from wiki pages only.' |
|
101 | raise 'With no argument, this macro can be called from wiki pages only.' |
General Comments 0
You need to be logged in to leave comments.
Login now