Redirect Targets are not Orphaned

A pages that is linked-to, via a redirect, is not orphaned.
This commit is contained in:
Jacques Distler 2009-06-06 12:37:00 -05:00
parent 63fde3165e
commit 12207bc01c
3 changed files with 11 additions and 4 deletions

View file

@ -67,8 +67,8 @@ class PageSet < Array
if never_orphans.include? page.name
false
else
# references = pages_that_reference(page.name)
references = WikiReference.pages_that_reference(@web, page.name)
references = WikiReference.pages_that_reference(@web, page.name) +
WikiReference.pages_redirected_to(@web, page.name)
references.empty? or references == [page.name]
end
}