Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
index.php
r311 r317 267 267 $count = ( $row = $db->sql_fetchrow($result) ) ? $row['count'] : 0; 268 268 269 list($pagertop, $pagerbottom, $ limit) = pager(6, $count, 'index.php?');269 list($pagertop, $pagerbottom, $offset, $limit) = pager(6, $count, 'index.php?'); 270 270 271 271 $sql = 'SELECT i.*, c.image AS category_image, c.name AS category_name, t.name AS torrent_name, t.category … … 276 276 AND t.hidden = 0' . 277 277 ( $userdata['uid'] == ANONYMOUS ? ' AND c.anonymous_view = 1' : '' ) 278 . ' ORDER BY t.ctime DESC ' . $limit;279 $result = $db->sql_query ($sql, 31536000);278 . ' ORDER BY t.ctime DESC'; 279 $result = $db->sql_query_limit($sql, $limit, $offset, 31536000); 280 280 $show_releases = false; 281 281 if ( $row = $db->sql_fetchrow($result) ) {
