Project

General

Profile

Feature #1075 » inherit-wiki-0.7r1464.patch

Diff for this change against 0.7.x (r1464 through r1472) - Lo Shih, 2008-05-27 22:19

View differences:

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
        logger.debug "*** Looking in subproject, '#{subproject}'" if logger
41
        if subproject.wiki
42
          subpage = subproject.wiki.find_page(title, options)
43
          if subpage
44
            page = subpage
45
          end
46
        end
47
      end
48
    end
38 49
    if !page && !(options[:with_redirect] == false)
39 50
      # search for a redirect
40 51
      redirect = redirects.find_by_title(title)
(2-2/2)