[dw-free] pic#0 displayed on allpics.bml when pagination is turned on
[commit: http://hg.dwscoalition.org/dw-free/rev/57a34c54466c]
http://bugs.dwscoalition.org/show_bug.cgi?id=1252
Fix displaying the first user icon a user has on allpics in some situations.
Patch by
afuna.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1252
Fix displaying the first user icon a user has on allpics in some situations.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/allpics.bml
-------------------------------------------------------------------------------- diff -r 638833e5c9de -r 57a34c54466c htdocs/allpics.bml --- a/htdocs/allpics.bml Fri Jun 12 20:59:31 2009 +0000 +++ b/htdocs/allpics.bml Fri Jun 12 21:01:09 2009 +0000 @@ -126,7 +126,7 @@ self_link => sub { BML::get_uri() . "?page=$_[0]&" . $querystring }, }); $start_index = $page_size * ($page -1); } - @pics = @allpics[$start_index..$start_index + $page_size - 1]; + @pics = splice( @allpics, $start_index, $start_index + $page_size - 1 ); } else { @pics = @allpics; } --------------------------------------------------------------------------------