Feature #1075 » inherit-wiki-0.7r1464.patch
app/models/wiki.rb (working copy) | ||
---|---|---|
35 | 35 |
title = start_page if title.blank? |
36 | 36 |
title = Wiki.titleize(title) |
37 | 37 |
page = pages.find_by_title(title) |
38 |
if !page && !(options[:include_subprojects] == false) |
|
39 |
project.active_children().each do |subproject| |
|
40 |
subpage = subproject.wiki.find_page(title, options) |
|
41 |
if subpage |
|
42 |
page = subpage |
|
43 |
end |
|
44 |
end |
|
45 |
end |
|
38 | 46 |
if !page && !(options[:with_redirect] == false) |
39 | 47 |
# search for a redirect |
40 | 48 |
redirect = redirects.find_by_title(title) |