Feature #1075 » inherit-wiki-0.7r1464.patch
| app/models/wiki.rb (working copy) | ||
|---|---|---|
|
title = start_page if title.blank?
|
||
|
title = Wiki.titleize(title)
|
||
|
page = pages.find_by_title(title)
|
||
|
if !page && !(options[:include_subprojects] == false)
|
||
|
project.active_children().each do |subproject|
|
||
|
logger.debug "*** Looking in subproject, '#{subproject}'" if logger
|
||
|
if subproject.wiki
|
||
|
subpage = subproject.wiki.find_page(title, options)
|
||
|
if subpage
|
||
|
page = subpage
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
if !page && !(options[:with_redirect] == false)
|
||
|
# search for a redirect
|
||
|
redirect = redirects.find_by_title(title)
|
||
- « Previous
- 1
- 2
- Next »