- @list = split ' ', $params{pagenames};
- my $_;
- @list = map { bestlink($params{page}, $_) } @list;
-
- $params{pages} = join(" or ", @list);
- }
- else {
- @list = pagespec_match_list(
- [ grep { $_ ne $params{page} } keys %pagesources ],
- $params{pages}, location => $params{page});
+ @list = map { bestlink($params{page}, $_) }
+ split ' ', $params{pagenames};