diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-10-18 20:18:37 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-10-18 20:18:37 +0200 |
commit | 2356b509c72593217e14e024eae3bfa2ff8f0b20 (patch) | |
tree | 5511dc8ab19c8d72600c9d1d72351710f85afe07 | |
parent | d1ed0b61f4795d01c2d9675949d2aad4568bc0c7 (diff) | |
download | rpg-2356b509c72593217e14e024eae3bfa2ff8f0b20.tar.gz rpg-2356b509c72593217e14e024eae3bfa2ff8f0b20.tar.bz2 |
fix getRecents for multiple edits per second
This fixes the getRecent function when multiple edits occured during the same
second.
darcs-hash:20061018181837-7ad00-a09b9b63a4bab86d142bfe1f8cf662b001bda075.gz
-rw-r--r-- | inc/changelog.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/changelog.php b/inc/changelog.php index 0c6557e46..5cb99f29b 100644 --- a/inc/changelog.php +++ b/inc/changelog.php @@ -106,19 +106,19 @@ function getRecents($first,$num,$ns='',$flags=0){ // read all recent changes. (kept short) $lines = file($conf['changelog']); + // handle lines for($i = count($lines)-1; $i >= 0; $i--){ $rec = _handleRecent($lines[$i], $ns, $flags); if($rec !== false) { if(--$first >= 0) continue; // skip first entries - $recent[$rec['date']] = $rec; + $recent[] = $rec; $count++; // break when we have enough entries if($count >= $num){ break; } } } - krsort($recent); return $recent; } |