Changeset 2588
- Timestamp:
- 06/17/08 07:00:45 (17 months ago)
- Files:
-
- 1 modified
-
branches/release-40/php/lib/mtdb_base.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-40/php/lib/mtdb_base.php
r2521 r2588 493 493 $args['lastn'] = $args['limit']; 494 494 } elseif (!isset($args['days']) && !isset($args['lastn'])) { 495 #if ($days = $blog['blog_days_on_index']) {496 #if (!isset($args['recently_commented_on'])) {497 #$args['days'] = $days;498 #}499 #} elseif ($posts = $blog['blog_entries_on_index']) {500 #$args['lastn'] = $posts;501 #}495 if ($days = $blog['blog_days_on_index']) { 496 if (!isset($args['recently_commented_on'])) { 497 $args['days'] = $days; 498 } 499 } elseif ($posts = $blog['blog_entries_on_index']) { 500 $args['lastn'] = $posts; 501 } 502 502 } 503 503 if ($args['limit'] == 'auto') { … … 898 898 $no_resort = 1; 899 899 } elseif ( !is_null($total_count) ) { 900 $orig_ limit = $limit;901 $orig_ offset = $offset;900 $orig_offset = $post_select_offset ? $post_select_offset : $orig_offset; 901 $orig_limit = $post_select_limit ? $post_select_limit : $limit; 902 902 } else { 903 903 $sql = $this->apply_limit_sql($sql . " <LIMIT>", $limit, $offset);
