Changeset 471356
- Timestamp:
- 12/05/2011 11:50:39 PM (14 years ago)
- File:
-
- 1 edited
-
404-redirected/trunk/includes/admin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
404-redirected/trunk/includes/admin.php
r471354 r471356 283 283 } 284 284 285 function wbz404_getRecords($sub, $tableOptions ) {285 function wbz404_getRecords($sub, $tableOptions, $limitEnforced = 1) { 286 286 global $wpdb; 287 287 $rows = array(); … … 306 306 307 307 $query .= "order by " . $tableOptions['orderby'] . " " . $tableOptions['order'] . " "; 308 $start = ($tableOptions['paged'] - 1) * $tableOptions['perpage']; 309 $query .= "limit " . $start . ", " . $tableOptions['perpage']; 308 309 if ($limitEnforced == 1) { 310 $start = ($tableOptions['paged'] - 1) * $tableOptions['perpage']; 311 $query .= "limit " . $start . ", " . $tableOptions['perpage']; 312 } 310 313 311 314 $rows = $wpdb->get_results($query, ARRAY_A); … … 809 812 $tableOptions = wbz404_getTableOptions(); 810 813 811 $rows = wbz404_getRecords($sub, $tableOptions );814 $rows = wbz404_getRecords($sub, $tableOptions, 0); 812 815 foreach ($rows as $row) { 813 816 wbz404_cleanRedirect($row['id']);
Note: See TracChangeset
for help on using the changeset viewer.