+
+ # Avoid nested inlines, to avoid loops etc.
+ if ($processing_inline) {
+ return "";
+ }
+ $processing_inline=1;
+
+ my @list;
+ foreach my $page (keys %pagesources) {
+ next if $page eq $params{page};
+ if (globlist_match($page, $params{pages})) {
+ push @list, $page;
+ }
+ }
+ @list=sort { $pagectime{$b} <=> $pagectime{$a} } @list;
+ if ($params{show} && @list > $params{show}) {
+ @list=@list[0..$params{show} - 1];
+ }
+