summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-11 03:47:32 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-11 03:47:32 +0000
commit482c133d1818589919b894cfdd2ff82d4e9f5ddd (patch)
tree30c3d057f45488ff2c2ffcfd90469d9cde9469ae
parenta771728da06a486a78996800d82cc87c0466328b (diff)
recentchanges
-rwxr-xr-xikiwiki3
1 files changed, 2 insertions, 1 deletions
diff --git a/ikiwiki b/ikiwiki
index debf43a54..643f0a054 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -402,7 +402,7 @@ sub rcs_recentchanges ($) {
push @ret, {rev => $rev, user => $user,
date => $when, message => $message,
pages => [@pages]},
- last if @ret >= $num;
+ return @ret if @ret >= $num;
$state='header';
$message=$rev=$user=$when=undef;
@@ -640,6 +640,7 @@ sub cgi () {
if ($do eq 'recentchanges') {
my $list="<ul>\n";
foreach my $change (rcs_recentchanges(100)) {
+ print STDERR "change: $change....\n";
$list.="<li>";
foreach my $page (@{$change->{pages}}) {
$list.=$page." ";